Azure Principal Creation
This was for Hyde and Dev-Hyde containers
- Create a Service Principal in Azure:
- Open your terminal and run the following command to create a service principal:
az ad sp create-for-rbac --name "myServicePrincipal" --role contributor --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group} --sdk-auth
- Replace
{subscription-id}
and{resource-group}
with your actual subscription ID and resource group name. - This command will output a JSON object containing your service principal credentials.
- Open your terminal and run the following command to create a service principal:
- Use the JSON output as your credential as required.
Examples
az ad sp create-for-rbac --name "hyde-aca" --role contributor --scopes /subscriptions/ID/resourceGroups/rts-infra --json-auth
az ad sp create-for-rbac --name "hyde-dev-aca" --role contributor --scopes /subscriptions/ID/resourceGroups/hyde-dev-group --json-auth