azure-docs
azure-docs copied to clipboard
Fix command in vm-generalized-image-version.md
Why
from https://learn.microsoft.com/en-us/azure/virtual-machines/vm-generalized-image-version?tabs=cli%2Ccli2%2Ccli3%2Ccli4#rbac---shared-from-another-tenant
This command does not work. Please take a look at it below.
$ az group create --location --resource-group $resourcegroup
argument --location/-l: expected one argument
Examples from AI knowledge base:
az group create --location westus --resource-group MyResourceGroup
Create a new resource group in the West US region.
az group create --location westeurope --resource-group MyResourceGroup --tags {tags}
Create a new resource group. (autogenerated)
az account list-locations
List supported regions for the current subscription. (autogenerated)
https://docs.microsoft.com/en-US/cli/azure/group#az_group_create
Read more about the command in reference docs
What
I fixed the command. And I have checked the following on my PC.
[2023/06/01 15:32:08] sakabekodai@~/src/github.com/koudaiii/azure-docs (patch-7)(minikube)
$ location="japaneast"
[2023/06/01 15:32:21] sakabekodai@~/src/github.com/koudaiii/azure-docs (patch-7)(minikube)
$ resourcegroup="test"
[2023/06/01 15:32:28] sakabekodai@~/src/github.com/MicrosoftDocs/azure-docs (patch-7)(minikube)
$ az group create --location $location --resource-group $resourcegroup
Location Name
---------- ------
japaneast test
@koudaiii : Thanks for your contribution! The author(s) have been notified to review your proposed change.
Learn Build status updates of commit b34806a:
:white_check_mark: Validation status: passed
File | Status | Preview URL | Details |
---|---|---|---|
articles/virtual-machines/vm-generalized-image-version.md | :white_check_mark:Succeeded |
For more details, please refer to the build report.
For any questions, please:
- Try searching the learn.microsoft.com contributor guides
- Post your question in the Learn support channel
@sandeepraichura
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off
comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged" @MicrosoftDocs/public-repo-pr-review-team