Skip to content

Commit 9b812cc

Browse files
update
1 parent edd0c97 commit 9b812cc

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

infra/scripts/process_sample_data.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ if [ -z "$webAppManagedIdentityDisplayName" ]; then
5151
webAppManagedIdentityDisplayName=$(azd env get-value MANAGEDIDENTITY_WEBAPP_NAME)
5252
fi
5353

54-
if [ -z "$aiFoundryName" ]; then
55-
aiFoundryName=$(azd env get-value AI_FOUNDRY_NAME)
56-
fi
57-
5854
if [ -z "$aiSearchName" ]; then
5955
aiSearchName=$(azd env get-value AI_SEARCH_SERVICE_NAME)
6056
fi

infra/scripts/run_create_index_scripts.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ aiSearchName="$6"
1010
aif_resource_id="$7"
1111

1212
echo "Script Started"
13-
13+
echo "aif_resource_id in run_create: $aif_resource_id"
1414
# Authenticate with Azure
1515
if az account show &> /dev/null; then
1616
echo "Already authenticated with Azure."
@@ -72,9 +72,6 @@ echo "Azure AI resource id: $aif_resource_id"
7272
# Check if the user has the Azure AI User role
7373
echo "Checking if user has the Azure AI User role"
7474
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"
7875
if [ -z "$role_assignment" ]; then
7976
echo "User does not have the Azure AI User role. Assigning the role."
8077
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

Comments
 (0)