MicrosoftDocs / azure-docs

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

Error in the Vnet Resource ID #106949

Closed petri-ojala closed 9 months ago

petri-ojala commented 1 year ago

Hi,

The example for "Deploy in a virtual network using the Azure CLI" seems to have some copy & paste errors for the VNet resource ID.

Best regards, Petri


Document Details

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

Naveenommi-MSFT commented 1 year ago

@petri-ojala Thanks for your feedback! We will investigate and update as appropriate.

SaibabaBalapur-MSFT commented 1 year ago

@petri-ojala Please could you share error code with screenshot for better understanding.

SaibabaBalapur-MSFT commented 1 year ago

@petri-ojala Since we have not heard back from you, we will now proceed to close this thread.If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

petri-ojala commented 1 year ago

Hi,

It does help to keep the performance metrics good to forget the weekend, but anyway..

The error is in this part:

## Deploy in a virtual network using the Azure CLI

To deploy a container group to a virtual network using managed identity to authenticate image pulls from an ACR that runs behind a private endpoint via the Azure CLI, use the following command:

azurecli-interactive
az container create --name my-containergroup --resource-group myResourceGroup --image <loginServer>/hello-world:v1 --acr-identity $userID --assign-identity $userID --vnet "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myVNetResourceGroup/providers/ --subnet mySubnetName

If you look at the --vnet parameter, it doesn't look like a name of a Vnet or a valid Vnet resource ID.

SaibabaBalapur-MSFT commented 1 year ago

@petri-ojala I'm going to assign this to the document author so they can take a look at it accordingly.

@tomvcassidy can you review it.

akashdubey-ms commented 9 months ago

Thanks for your contribution to our documentation

We sincerely apologize for the delayed response. Unfortunately, we have been unable to review this issue in a timely manner. However, we are making overall enhancements to our content. We are closing this issue for now as there has been no activity for a while. If you feel that the problem persists, please respond to this issue with additional information. ? Please continue to provide feedback about the documentation. We appreciate your contributions to our community.

please-close