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/process_sample_data.sh
+90-90Lines changed: 90 additions & 90 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ aif_resource_id="${8}"
13
13
# Global variables to track original network access states
14
14
original_storage_public_access=""
15
15
original_storage_default_action=""
16
-
original_search_public_access=""
17
-
original_search_bypass=""
16
+
#original_search_public_access=""
17
+
#original_search_bypass=""
18
18
original_foundry_public_access=""
19
19
aif_resource_group=""
20
20
aif_account_resource_id=""
@@ -71,53 +71,53 @@ enable_public_access() {
71
71
fi
72
72
73
73
# Enable public access for AI Search Service
74
-
echo"Enabling public access for AI Search Service: $aiSearchName"
75
-
original_search_public_access=$(az search service show \
76
-
--name "$aiSearchName" \
77
-
--resource-group "$resourceGroupName" \
78
-
--query "publicNetworkAccess" \
79
-
-o tsv)
74
+
#echo "Enabling public access for AI Search Service: $aiSearchName"
75
+
#original_search_public_access=$(az search service show \
76
+
# --name "$aiSearchName" \
77
+
# --resource-group "$resourceGroupName" \
78
+
# --query "publicNetworkAccess" \
79
+
# -o tsv)
80
80
81
-
# Get current bypass setting for trusted services
82
-
original_search_bypass=$(az search service show \
83
-
--name "$aiSearchName" \
84
-
--resource-group "$resourceGroupName" \
85
-
--query "networkRuleSet.bypass" \
86
-
-o tsv)
81
+
## Get current bypass setting for trusted services
82
+
#original_search_bypass=$(az search service show \
83
+
# --name "$aiSearchName" \
84
+
# --resource-group "$resourceGroupName" \
85
+
# --query "networkRuleSet.bypass" \
86
+
# -o tsv)
87
87
88
-
if [ "$original_search_public_access"!="Enabled" ];then
89
-
az search service update \
90
-
--name "$aiSearchName" \
91
-
--resource-group "$resourceGroupName" \
92
-
--public-access enabled \
93
-
--output none
94
-
if [ $?-eq 0 ];then
95
-
echo"✓ AI Search Service public access enabled"
96
-
else
97
-
echo"✗ Failed to enable AI Search Service public access"
98
-
return 1
99
-
fi
100
-
else
101
-
echo"✓ AI Search Service public access already enabled"
102
-
fi
88
+
#if [ "$original_search_public_access" != "Enabled" ]; then
89
+
# az search service update \
90
+
# --name "$aiSearchName" \
91
+
# --resource-group "$resourceGroupName" \
92
+
# --public-access enabled \
93
+
# --output none
94
+
# if [ $? -eq 0 ]; then
95
+
# echo "✓ AI Search Service public access enabled"
96
+
# else
97
+
# echo "✗ Failed to enable AI Search Service public access"
98
+
# return 1
99
+
# fi
100
+
#else
101
+
# echo "✓ AI Search Service public access already enabled"
102
+
#fi
103
103
104
-
# Enable trusted services bypass
105
-
if [ "$original_search_bypass"!="AzureServices" ];then
106
-
echo"Enabling trusted services bypass for AI Search Service"
107
-
MSYS_NO_PATHCONV=1 az resource update \
108
-
--ids "/subscriptions/$(az account show --query id -o tsv)/resourceGroups/$resourceGroupName/providers/Microsoft.Search/searchServices/$aiSearchName" \
echo"✓ AI Search Service trusted services bypass enabled"
114
-
else
115
-
echo"✗ Failed to enable AI Search Service trusted services bypass"
116
-
return 1
117
-
fi
118
-
else
119
-
echo"✓ AI Search Service trusted services bypass already enabled"
120
-
fi
104
+
## Enable trusted services bypass
105
+
#if [ "$original_search_bypass" != "AzureServices" ]; then
106
+
# echo "Enabling trusted services bypass for AI Search Service"
107
+
# MSYS_NO_PATHCONV=1 az resource update \
108
+
# --ids "/subscriptions/$(az account show --query id -o tsv)/resourceGroups/$resourceGroupName/providers/Microsoft.Search/searchServices/$aiSearchName" \
# echo "✗ Failed to restore AI Search Service access"
222
+
# fi
223
+
#else
224
+
# echo "AI Search Service access unchanged (already at desired state)"
225
+
#fi
226
226
227
-
# Restore AI Search Service trusted services bypass
228
-
if [ -n"$original_search_bypass" ] && [ "$original_search_bypass"!="AzureServices" ];then
229
-
echo"Restoring AI Search Service trusted services bypass to: $original_search_bypass"
230
-
# Handle null/empty values
231
-
if [ "$original_search_bypass"="null" ] || [ -z"$original_search_bypass" ];then
232
-
restore_bypass_value="None"
233
-
else
234
-
restore_bypass_value="$original_search_bypass"
235
-
fi
236
-
MSYS_NO_PATHCONV=1 az resource update \
237
-
--ids "/subscriptions/$(az account show --query id -o tsv)/resourceGroups/$resourceGroupName/providers/Microsoft.Search/searchServices/$aiSearchName" \
# echo "Restoring AI Search Service trusted services bypass to: $original_search_bypass"
230
+
# # Handle null/empty values
231
+
# if [ "$original_search_bypass" = "null" ] || [ -z "$original_search_bypass" ]; then
232
+
# restore_bypass_value="None"
233
+
# else
234
+
# restore_bypass_value="$original_search_bypass"
235
+
# fi
236
+
# MSYS_NO_PATHCONV=1 az resource update \
237
+
# --ids "/subscriptions/$(az account show --query id -o tsv)/resourceGroups/$resourceGroupName/providers/Microsoft.Search/searchServices/$aiSearchName" \
0 commit comments