Creating Azure Virtual Machine gives AuthorizationFailed on action "Microsoft.Resources/deployments/validate/action"

Sindre Ditlefsen 0 Reputation points

I am trying to create a Azure Virtual Machine.

I get this error:

The client '' with object id '1-2-3-4-5' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/6-7-8-9-10/resourceGroups/limacharlie/providers/Microsoft.Resources/deployments/CreateVm-canonical.0001-com-ubuntu-server-jammy-2-20231005075943' or the scope is invalid. If access was recently granted, please refresh your credentials.

This is the input information I gave to Azure:


Subscription: Production

Resource group: limacharlie

Instance details

Virtual machine name: CollectorServerAzure

Region: (Europe) Norway East

Availability options: No infrastructure redundancy required

Security type: Trusted lunch virtual machines

Images: Ubuntu Server 22.04 LTS

VM architecture: x64

Size: Standard_D2s_v3 2 vcpus, 8 GiB memory ($ 96.36/month)

Administrative accounts:


SSH public key source:

Key pair name:

Inbound port rules:

Public inbound ports: Allowed selected ports

Select inbound ports: SSH (22)


OS disk size: 64 GiB (P6)

OS disk type: Standard SSD (locally-redundant storage)

Delete with VM: Yes


Login with Azure AD: Yes



Enable reccomended alert rules: Check


Name: Vendor

Value: LimaCharlie

I am the Global Administrator of the directory and I see the subscription "Production". What can I do to fix this error?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,254 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Olga Os - MSFT 5,836 Reputation points Microsoft Employee

    Hello Sindre,

    Welcome to the MS Q&A Forum.

    Do you create this VM from the Azure Portal? Were you able to create any VMs before?

    I'd check yourself access level by navigating to the Subscription > Access Control (AIM).

    User's image

    Sincerely, Olga Os.

    0 comments No comments