You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: infra/scripts/run_create_index_scripts.sh
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ aiSearchName="$6"
10
10
aif_resource_id="$7"
11
11
12
12
echo"Script Started"
13
-
13
+
echo"aif_resource_id in run_create: $aif_resource_id"
14
14
# Authenticate with Azure
15
15
if az account show &> /dev/null;then
16
16
echo"Already authenticated with Azure."
@@ -72,9 +72,6 @@ echo "Azure AI resource id: $aif_resource_id"
72
72
# Check if the user has the Azure AI User role
73
73
echo"Checking if user has the Azure AI User role"
74
74
role_assignment=$(MSYS_NO_PATHCONV=1 az role assignment list --role 53ca6127-db72-4b80-b1b0-d745d6d5456d --scope $aif_resource_id --assignee $signed_user_id --query "[].roleDefinitionId" -o tsv)
75
-
echo"role_assignment: $role_assignment"
76
-
echo"aif_resource_id: $aif_resource_id"
77
-
echo"signed_user_id: $signed_user_id"
78
75
if [ -z"$role_assignment" ];then
79
76
echo"User does not have the Azure AI User role. Assigning the role."
80
77
MSYS_NO_PATHCONV=1 az role assignment create --assignee $signed_user_id --role 53ca6127-db72-4b80-b1b0-d745d6d5456d --scope $aif_resource_id --output none
0 commit comments