File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,13 @@ enable_public_access() {
7575 aif_resource_name=$( basename " $aif_account_resource_id " )
7676 # Extract resource group from the AI Foundry account resource ID
7777 aif_resource_group=$( echo " $aif_account_resource_id " | sed -n ' s|.*/resourceGroups/\([^/]*\)/.*|\1|p' )
78+ # Extract subscription ID from the AI Foundry account resource ID
79+ aif_subscription_id=$( echo " $aif_account_resource_id " | sed -n ' s|.*/subscriptions/\([^/]*\)/.*|\1|p' )
7880
7981 original_foundry_public_access=$( az cognitiveservices account show \
8082 --name " $aif_resource_name " \
8183 --resource-group " $aif_resource_group " \
84+ --subscription " $aif_subscription_id " \
8285 --query " properties.publicNetworkAccess" \
8386 --output tsv)
8487 if [ -z " $original_foundry_public_access " ] || [ " $original_foundry_public_access " = " null" ]; then
You can’t perform that action at this time.
0 commit comments