Skip to content

AzureStack Could Not Find Member 'enableCrossZoneUpgrade' and 'prioritizeUnhealthyInstances'  #18229

Description

@TheOnlyWei

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

  1. Install Azure CLI.
  2. 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
  1. 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 Feiyue Yu (@qwordy). We can provide additional information in the email or here if requested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions