We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf7cb0 commit 9f4f793Copy full SHA for 9f4f793
1 file changed
scripts/bash/assign_arc_app_roles.sh
@@ -8,6 +8,8 @@ enterpriseAppName="spn-manbrs-web-api-${ENV_CONFIG}"
8
rgName="rg-mbsgw-${ENV_CONFIG}-uks-arc-enabled-servers"
9
appRoleValue="Gateway.Access"
10
11
+az extension add --name connectedmachine --allow-preview true --yes 2>/dev/null || true
12
+
13
echo "Fetching enterprise app details for: $enterpriseAppName"
14
spObjectId=$(az ad sp list --filter "displayName eq '${enterpriseAppName}'" --query "[0].id" -o tsv)
15
appRoleId=$(az ad sp list --filter "displayName eq '${enterpriseAppName}'" --query "[0].appRoles[?value=='${appRoleValue}'].id | [0]" -o tsv)
0 commit comments