I can't create an Azure VM

Jamie Towers 0 Reputation points
2024-01-11T19:39:10.9466667+00:00

It keeps coming up with the below error: AuthorizationFailed) The client 'live.com#@icloud.com' with object id 'cb05fbc7-fe6f-4c57-84c2-909d88ba6ade' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/3da7631a-0201-45df-b6f5-3f623140d255/resourcegroups/[test_group]' or the scope is invalid. If access was recently granted, please refresh your credentials. Code: AuthorizationFailed Message: The client 'live.com#@icloud.com' with object id 'cb05fbc7-fe6f-4c57-84c2-909d88ba6ade' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/3da7631a-0201-45df-b6f5-3f623140d255/resourcegroups/[test_group]' or the scope is invalid. If access was recently granted, please refresh your credentials. Attempting to study for AZ-900 but this is stopping me, please advise.

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
2,052 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. JimmySalian-2011 42,241 Reputation points
    2024-01-11T20:21:23.24+00:00

    Thank you for asking this question on the Microsoft Q&A Platform. Microsoft Certification / Exams / Learn is currently not supported in the Q&A forums. Maybe one of the links is helpful: Microsoft Training & Certification is supported on their own forums: Microsoft Certification - Exams: https://trainingsupport.microsoft.com/en-us/mcp/forum/mcp_exams Microsoft Certification - Exam Registration: https://trainingsupport.microsoft.com/en-us/mcp/forum/mcp_exams-mcp_exam Microsoft Certification - Vouchers/Discounts: https://trainingsupport.microsoft.com/en-us/mcp/forum/mcp_exams-mcp_offer


    Please don't forget to upvote and Accept as answer if the reply is helpful If this answer helped you please mark it as "Verified" so other users can reference it.

    0 comments No comments

  3. Luca Lionetti 3,226 Reputation points
    2024-01-11T20:45:45.9+00:00

    Hi, Welcome to Microsoft Q&A community forum! It could be that you don't have the necessary permissions on the subscription, you need to ask the tenant administrator to give you the permissions to create the services, or the resource group name is wrong, please use the command in powershell adding the right resource group name, without square brackets for example for creating a vm in azure with powershell you can use this command

    New-AzVm `
        -ResourceGroupName 'myResourceGroup' `
        -Name 'myVM' `
        -Location 'East US' `
        -Image 'MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edition:latest' `
        -VirtualNetworkName 'myVnet' `
        -SubnetName 'mySubnet' `
        -SecurityGroupName 'myNetworkSecurityGroup' `
        -PublicIpAddressName 'myPublicIpAddress' `
        -OpenPorts 80,3389
    

    replace your own info the red part subscription

    ref links change permissions

    https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal-subscription-admin

    create vm powershell

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-powershell Hope this helps Cheers Luca

    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues

    0 comments No comments

  4. TP 102.9K Reputation points
    2024-01-11T20:51:52.2766667+00:00

    Hi Jamie,

    There is a recent bug in the exercise whereby the resource group name doesn't get set as it should. Below instructions will allow you to complete it successfully.

    Please navigate to the Create an Azure virtual machine exercise, Activate a new sandbox, sign in, etc. Once sandbox is activated and black cloud shell window with "Welcome to Azure Cloud Shell" displayed, navigate to Exercise - Configure network access using the "Unit x of 14" dropdown above the exercise.

    qna az-900 create azure vm workaround After page loads and resource group name is updated to learn-, immediately navigate back to Create an Azure virtual machine exercise and complete it.

    NOTE: Please click Copy button in upper right corner of each code block, then right-click in the cloud shell window on right, choose Paste, then press enter to run the command(s).

    Inspiration for above workaround came from @pnaroju's #2 suggestion in this post.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.