I am getting error on task 3
az vm create
–resource-group kml_rg_main-800dccb9af8a4bad
–name xfusion-vm
–image Ubuntu2404
–size Standard_B2s
–admin-username azureuser
–generate-ssh-keys
–os-disk-size-gb 30
–storage-sku Standard_LRS
(AuthorizationFailed) The client ‘69d4f725-8b4c-4eca-9ec2-dffc1e58504c’ with object id ‘5a644864-8bab-4df2-bff2-cf9bf3641562’ does not have authorization to perform action ‘Microsoft.Resources/subscriptions/resourcegroups/read’ over scope ‘/subscriptions/f0c3bcdd-5ce2-4fa0-8cf3-41559747512b/resourcegroups/kml_rg_main-800dccb9af8a4bad’ or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client ‘69d4f725-8b4c-4eca-9ec2-dffc1e58504c’ with object id ‘5a644864-8bab-4df2-bff2-cf9bf3641562’ does not have authorization to perform action ‘Microsoft.Resources/subscriptions/resourcegroups/read’ over scope ‘/subscriptions/f0c3bcdd-5ce2-4fa0-8cf3-41559747512b/resourcegroups/kml_rg_main-800dccb9af8a4bad’ or the scope is invalid. If access was recently granted, please refresh your credentials.
Did you enter the above in the same format in azure cli , if so it’s a syntax error the correct syntax code is:
az vm create
–-resource-group kml_rg_main-800dccb9af8a4bad \
-–name xfusion-vm \
-–image Ubuntu2404 \
–-size Standard_B2s \
-–admin-username azureuser \
-–generate-ssh-keys \
-–os-disk-size-gb 30 \
–-storage-sku Standard_LRS
i copied your posted code as well. but still getting same error
(AuthorizationFailed) The client ‘9e8392ed-d8c5-479c-a213-1df4d235ee38’ with object id ‘68cab93e-2907-4201-a72c-3f27c3437155’ does not have authorization to perform action ‘Microsoft.Resources/subscriptions/resourcegroups/read’ over scope ‘/subscriptions/f0c3bcdd-5ce2-4fa0-8cf3-41559747512b/resourcegroups/kml_rg_main-800dccb9af8a4bad’ or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client ‘9e8392ed-d8c5-479c-a213-1df4d235ee38’ with object id ‘68cab93e-2907-4201-a72c-3f27c3437155’ does not have authorization to perform action ‘Microsoft.Resources/subscriptions/resourcegroups/read’ over scope ‘/subscriptions/f0c3bcdd-5ce2-4fa0-8cf3-41559747512b/resourcegroups/kml_rg_main-800dccb9af8a4bad’ or the scope is invalid. If access was recently granted, please refresh your credentials.
do az group list
and then copy your resource group whole name kml_rg_main-
and use the command again