MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.11k stars 21.17k forks source link

'Simplified parameter set' approach does not create a public IP for the new VM #122438

Open sabuncumurat opened 2 months ago

sabuncumurat commented 2 months ago

Under section 'Your own gallery' it says:

You can use the simplified parameter set to quickly create a VM from an image. The simplified parameter set uses the VM name to automatically create some of the required resources, like vNet and public IP address, for you.

When the New-AzVM command from the accompanying PowerShell code sampe is run, it does not create a public IP.

(The code as shown is missing a backtick on the line where the -Image option is located but that's a typo and not the cause of the problem.)

At the same time, the detailed full-parameter-set approach is not necessary either. You don't need to individually create the network pieces ahead of time. Simply naming them in the New-AzVM command is sufficient. If the named resource does not exist, New-AzVM will create the missing resource.

HTH.


Document Details

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

SaibabaBalapur-MSFT commented 2 months ago

@sabuncumurat Thanks for bringing this to our attention. I'm going to assign this to the document author so they can take a look at it accordingly.

@sandeepraichura Can you please check and add your comments on this doc update request as applicable.