Azure-docs: This is using wrong powershell parameters

Created on 30 Mar 2018  ·  3Comments  ·  Source: MicrosoftDocs/azure-docs

New-AzureRMVM doesn't have availabilitySetname as a parameter


Document Details

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

cxp doc-bug triaged virtual-machines-windowsvc

All 3 comments

@varma31 Thanks for the feedback! We are currently investigating and will update you shortly.

@varma31 although it is not listed in this specific step it is stated in previous steps:

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/tutorial-availability-sets

image

In addition, the New-AzureRmVm command does allow for the -availabilitySetName parameter:

https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/new-azurermvm?view=azurermps-5.6.0

I will close this out but if you don't feel that I answered your question please let me know and we can reopen and continue.

Yep, the Availability Set isn't central to this doc so isn't detailed very much, but those parameters do exist. I believe they were introduced in Azure PowerShell 5.3.0, so check the version that you are running. The Azure Cloud Shell at shell.azure.com/powershell always has the latest version (currently 5.6.0), or you can find instructions on manually installing the latest version on your local computer here - https://docs.microsoft.com/powershell/azure/install-azurerm-ps

Was this page helpful?
0 / 5 - 0 ratings

Related issues

monteledwards picture monteledwards  ·  3Comments

behnam89 picture behnam89  ·  3Comments

ishepherd picture ishepherd  ·  3Comments

Ponant picture Ponant  ·  3Comments

JeffLoo-ong picture JeffLoo-ong  ·  3Comments