You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2025. It is now read-only.
Description of issue:
It looks as if the az cli has been updated to require a scope when a role is specified
Repro steps:
execute az ad sp create-for-rbac --name <service-principal-name> --role Contributor in the cloud shell
Solution:
replace the labs code with the following 2 lines.
SUB_ID=$(az account show --query id --output tsv)
az ad sp create-for-rbac --name <service-principal-name> --role contributor --scope /subscriptions/$SUB_ID
Lab
Lab 12 Integrating Azure Key Vault with Azure DevOps