Azure-docs: Behavior when --platform-fault-domain-count option is not used in az vmss create command

Created on 3 Sep 2019  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

Hi Experts,

The description in the Azure CLI section says "You can set the parameter --platform-fault-domain-count to 1, 2, or 3 (default of 5 if not specified).". But when without --platform-fault-domain-count option az vmss create command executing, the value of "platformFaultDomainCount" was not set from Azure Resource Explorer.

0903_001

0903_002

Is this behavior expected?

The executed command is as follows:
az vmss create --resource-group <Resource Group name> --name <VMSS name> --image UbuntuLTS --upgrade-policy-mode automatic --admin-username <user name> --generate-ssh-keys --single-placement-group false

When creating the VMSS from the Azure portal, the following settings were set to ""platformFaultDomainCount" : 5".

  • Enable scaling beyond 100 instances : yes
  • Spreading algorithm : Fixed spreading (not recommended with zones)

0903_003

Best Regards,


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 awaiting-product-team-response cxp product-question triaged virtual-machine-scale-setsvc

All 9 comments

@kogesaka , Thank you for your feedback. We will investigate and get back to you shortly.

@mayanknayar I am also seeing the same.
When I create the VMSS using portal, I can see this in activity log:
image

But --platform-fault-domain-count does not show up for VMSS created via Azure CLI, in activity log.
Can you please help us confirm on this behavior? Thanks :)

@mayanknayar Did you get a chance to take a look at the customer's question. Need your help with the confirmation. Thanks. :)

The platform fault domain count will default to 5, whenever a value has not been specified. It is possible that CLI is not showing the count as a return response, but the count would have been set. Please check with a GET on the VMSS.

@kogesaka Please try the suggestion shared above and share the results.
https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/get-azurermvmss?view=azurermps-6.13.0

Hi, @mayanknayar @Karishma-Tiwari-MSFT ,

I checked using Get-AzVmss, but there was no PlatformFaultDomainCount item.
It seems that it is not displayed unless it is created by Azure portal or "az vmss create" command with "--platform-fault-domain-count" option.

Thanks @kogesaka
@mayanknayar Thanks for sharing your inputs. Can you please help confirm on this behavior. Thanks :)

Hi, @mayanknayar @Karishma-Tiwari-MSFT ,

I checked using Get-AzVmss, but there was no PlatformFaultDomainCount item.
It seems that it is not displayed unless it is created by Azure portal or "az vmss create" command with "--platform-fault-domain-count" option.

@Karishma-Tiwari-MSFT - this needs to be raised with the CLI team. Please start a thread with the CLI team

I am closing this issue and opening a issue with Azure CLI team.
Thanks for bringing this to our attention. We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hansmbakker picture hansmbakker  Â·  53Comments

andersgidlund picture andersgidlund  Â·  45Comments

clangnerakq picture clangnerakq  Â·  46Comments

danielstocker picture danielstocker  Â·  70Comments

renattomachado picture renattomachado  Â·  42Comments