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).
Sincerely, Olga Os.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
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).
Sincerely, Olga Os.