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

Sindre Ditlefsen 0 Reputation points
2023-10-05T06:15:00.98+00:00

I am trying to create a Azure Virtual Machine.

I get this error:

The client 'x@x.onmicrosoft.com' 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:

Basics:

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:

username:

SSH public key source:

Key pair name:

Inbound port rules:

Public inbound ports: Allowed selected ports

Select inbound ports: SSH (22)

Disks

OS disk size: 64 GiB (P6)

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

Delete with VM: Yes

Management

Login with Azure AD: Yes

Monitoring

Alerts

Enable reccomended alert rules: Check

Tags

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,585 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Olga Os - MSFT 5,916 Reputation points Microsoft Employee
    2023-10-06T19:21:59.05+00:00

    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