Skip to content

Commit 3999569

Browse files
authored
docs: (IAC-372) Updated the commands related to Service Principal creation (#296)
1 parent 01433e1 commit 3999569

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/user/AzureHelpTopics.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You can create a Service Principal to use with Terraform by taking the following
5555
az login # follow the instructions given by this command
5656

5757
TF_VAR_client_secret=$(az ad sp create-for-rbac --role "Contributor" --scopes="/subscriptions/$TF_VAR_subscription_id" --name http://$USER --query password --output tsv)
58-
TF_VAR_client_id=$(az ad sp show --id http://$USER --query appId --output tsv)
58+
TF_VAR_client_id=$(az ad sp list --display-name http://$USER --query [].appId --output tsv)
5959

6060
echo $TF_VAR_client_id
6161
echo $TF_VAR_client_secret
@@ -116,4 +116,3 @@ You can use the Azure Portal user interface or the Azure CLI to assign a managed
116116

117117
- [Use the Azure Portal](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm#user-assigned-managed-identity)
118118
- [Use the Azure CLI](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-cli-windows-vm#user-assigned-managed-identity)
119-

0 commit comments

Comments
 (0)