Unable to create AKS cluster using azure powershell commands
Please share your PowerShell.
That is a screenshot of the output. Please paste the PowerShell script nicely formatted in a Text Block </>
/home/kk_lab_user_main-146cd2ce81d54cc> az aks create --resource-group “kml_rg_main-14cd2ce81d54ccb” --name “Demo-cluster” --enable-managed-identity --node-count 1 --generate-ssh-keys
SSH key files ‘/home/kk_lab_user_main-146cd2ce81d54cc/.ssh/id_rsa’ and ‘/home/kk_lab_user_main-146cd2ce81d54cc/.ssh/id_rsa.pub’ have been generated under ~/.ssh to allow SSH access to the VM. If using machines without permanent storage like Azure Cloud Shell without an attached file share, back up your keys to a safe location
(AuthorizationFailed) The client ‘kk_lab_user_main-146cd2ce81d54ccb@azurekmlprodkodekloud.onmicrosoft.com’ with object id ‘bd23339a-655c-4ab2-84b9-ab3438f4cf32’ does not have authorization to perform action
‘Microsoft.Resources/subscriptions/resourcegroups/read’ over scope ‘/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourcegroups/kml_rg_main-14cd2ce81d54ccb’ or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client ‘kk_lab_user_main-146cd2ce81d54ccb@azurekmlprodkodekloud.onmicrosoft.com’ with object id ‘bd23339a-655c-4ab2-84b9-ab3438f4cf32’ does not have authorization to perform action ‘Microsoft.Resources/subscriptions/resourcegroups/read’ over scope ‘/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourcegroups/kml_rg_main-14cd2ce81d54ccb’ or the scope is invalid. If access was recently granted, please refresh your credentials.
PS /home/kk_lab_user_main-146cd2ce81d54cc>
Please put your text in a code block as requested - it is the </>
icon on the edit menu bar. I cannot read your post as it.