diff --git a/oem/azure/common.sh b/oem/azure/common.sh index 08e040629f..666e30248e 100644 --- a/oem/azure/common.sh +++ b/oem/azure/common.sh @@ -9,12 +9,13 @@ getManagementEndpoint() { } getStorageEndpointPrefix() { - azure account env show --environment=$(getAzureEnvironment) --json | \ - jq '.storageEndpointSuffix' --raw-output + prefix=$(azure account env show --environment=$(getAzureEnvironment) --json | \ + jq '.storageEndpointSuffix' --raw-output) + echo "${prefix##.}" } getBlobStorageEndpoint() { - echo "blob$(getStorageEndpointPrefix)" + echo "blob.$(getStorageEndpointPrefix)" } getSubscriptionId() {