Hi Wu Jinfa,
Thank you for reaching out to us on the Microsoft Q&A forum.
Error message you're encountering indicates a permissions issue with the Azure account you are using. Specifically, it seems that the account does not have the necessary permissions to perform the action Microsoft.Resources/subscriptions/resourcegroups/read
on the specified scope /subscriptions/4b6f991f-8cd8-4563-a4a8-eae962ec0b5f/resourcegroups/PIP-VNG-Azure-Vnet-1
.
To resolve this issue, you need to ensure that your Azure account has the correct permissions assigned.
Here are some steps you can take:
1.Make sure your Azure account has the necessary permissions to manage Azure resources. Usually, this means having at least the Contributor role with sufficient permissions.
2.If you've recently updated access, try refreshing your Azure Cloud Shell session or logging out and back into Azure to ensure your credentials are current.
3.Please confirm that the resource group [sandbox resource group name]
exists and that you have the correct name. Ensure you are specifying the correct subscription ID (4b6f991f-8cd8-4563-a4a8-eae962ec0b5f
and resource group name (PIP-VNG-Azure-Vnet-1
).
4.If you lack the necessary permissions, please contact your administrator to obtain the required role specific permissions necessary for creating and managing resources within the designated resource group.
See related:
Authorization error Subscription authorization
By addressing these points, you should be able to resolve the AuthorizationFailed
error and proceed with your Azure CLI commands successfully. If you need further assistance, feel free to ask.
If you find this information helpful, please acknowledge by clicking the "Upvote" and "Accept Answer" buttons on the post.
Thank you.