File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8181 aif_resource_name=$( basename " $aif_account_resource_id " )
8282 # Extract resource group from the AI Foundry account resource ID
8383 aif_resource_group=$( echo " $aif_account_resource_id " | sed -n ' s|.*/resourceGroups/\([^/]*\)/.*|\1|p' )
84-
84+ # Extract subscription ID from the AI Foundry account resource ID
85+ aif_subscription_id=$( echo " $aif_account_resource_id " | sed -n ' s|.*/subscriptions/\([^/]*\)/.*|\1|p' )
86+
8587 original_foundry_public_access=$( az cognitiveservices account show \
8688 --name " $aif_resource_name " \
8789 --resource-group " $aif_resource_group " \
90+ --subscription " $aif_subscription_id " \
8891 --query " properties.publicNetworkAccess" \
8992 --output tsv)
9093 if [ -z " $original_foundry_public_access " ] || [ " $original_foundry_public_access " = " null" ]; then
You can’t perform that action at this time.
0 commit comments