Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ A service principal is automatically created by Azure Pipeline when you connect
1. From the **Bash** prompt, in the **Cloud Shell** pane, run the following command to create a service principal (replace the `<service-principal-name>` with any unique string of characters consisting of letters and digits):

```
az ad sp create-for-rbac --name <service-principal-name> --role Contributor
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
```

> **Note**: The command will generate a JSON output. Copy the output to text file. You will need it later in this lab.
Expand Down