azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Fix command in vm-generalized-image-version.md

Open koudaiii opened this issue 1 year ago • 3 comments

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

image

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 avatar Jun 01 '23 06:06 koudaiii

@koudaiii : Thanks for your contribution! The author(s) have been notified to review your proposed change.

prmerger-automator[bot] avatar Jun 01 '23 06:06 prmerger-automator[bot]

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:

@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

Court72 avatar Jun 01 '23 15:06 Court72