Azure-docs: Wrong command for the Public IP

Created on 12 May 2020  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

The command to create the Public IP is wrong:
az network public-ip create -g MyResourceGroup -n MyIp
It should be instead:
publicIp=$(az network public-ip create -g MyResourceGroup -n MyIp --allocation-method Static --sku Standard --query publicIp.ipAddress -o tsv)
And then the next command to create the Bastion, should use this variable $publicIp.
As a reference, you could see what the PowerShell tutorial is doing.
Thanks for fixing this doc accordingly please.


Document Details

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

Pri2 bastiosvc cxp doc-bug in-progress triaged

All 3 comments

@mathieu-benoit , Thanks for your feedback. We are looking into this query and will update you as soon as possible.

@mathieu-benoit , Appreciate your patience. We will work towards editing the doc soon after the MS build. Please stay tuned.

@mathieu-benoit , The doc has been updated accordingly and it would take some time for the changes to get reflect over the doc.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings