| author | dbradish-microsoft |
|---|---|
| ms.author | dbradish |
| ms.date | 01/13/2026 |
| ms.topic | include |
For this script, use Azure CLI locally as it takes too long to run in Cloud Shell.
Use the following script to sign in using a specific subscription.
subscription="<subscriptionId>" # add subscription here
az account set -s $subscription # ...or use 'az login'
For more information, see set active subscription or log in interactively