-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Milestone
Description
Describe the bug
We are getting bad request error running Azure CLI version 2019-03-01-hybrid in an Azure Stack environment. The following is the error:
az : ERROR: Deployment failed. Correlation ID: e436a4a0-c388-4834-aecf-ada3f8cf5c56. {
At C:\test\Workloads\DeveloperExperience\CLI\Workloads.Tests.CLI.ps1:759 char:23
+ ... $result = az vmss create -g $vmssRgName -n $vmssName --admin-userna ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (ERROR: Deployme...ada3f8cf5c56. {:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
"error": {
"details": [
{
"message": "Could not find member 'enableCrossZoneUpgrade' on object of type 'RollingUpgradePolicy'. Path
'properties.upgradePolicy.rollingUpgradePolicy.enableCrossZoneUpgrade', line 1, position 338.",
"target": "vmss.properties.upgradePolicy.rollingUpgradePolicy.enableCrossZoneUpgrade"
},
{
"message": "Could not find member 'prioritizeUnhealthyInstances' on object of type 'RollingUpgradePolicy'. Path
'properties.upgradePolicy.rollingUpgradePolicy.prioritizeUnhealthyInstances', line 1, position 374.",
"target": "vmss.properties.upgradePolicy.rollingUpgradePolicy.prioritizeUnhealthyInstances"
}
],
"code": "BadRequest",
"message": "The request message is invalid."
}
}
To Reproduce
- Install Azure CLI.
- Register:
az cloud register --name $TntAdminEnvironmentName `
--endpoint-resource-manager $asEndpoints.ResourceManagerEndpoint `
--suffix-storage-endpoint $asEndpoints.StorageEndpointSuffix `
--suffix-keyvault-dns ("." + $asEndpoints.AzureKeyVaultDnsSuffix) `
--endpoint-vm-image-alias-doc https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json `
--profile 2019-03-01-hybrid
- Run the following command:
az vmss create -g $vmssRgName -n $vmssName --admin-username $vmssAdminUserName --admin-password $vmssAdminPassword --image $imageName --authentication-type password --upgrade-policy-mode $upgradeMode
Expected behavior
Should not throw bad request error.
Environment summary
We are using the nightly builds:
https://aka.ms/InstallAzureCliWindowsEdge
Additional Context
I have an internal email open with @qwordy. We can provide additional information in the email or here if requested.
Reactions are currently unavailable