File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ get_values_from_az_deployment() {
6767 fi
6868
6969 # Extract specific outputs
70- storageAccount=$( echo " $deploymentOutputs " | sed -n ' s/.* "azurE_STORAGE_ACCOUNT_NAME": {"type": "String", "value": "\([^"]*\)".*/\1/p ' )
71- blobContainer=$( echo " $deploymentOutputs " | sed -n ' s/.* "azurE_STORAGE_CONTAINER_NAME": {"type": "String", "value": "\([^"]*\)".*/\1/p ' )
72- aiSearch=$( echo " $deploymentOutputs " | sed -n ' s/.* "azurE_AI_SEARCH_NAME": {"type": "String", "value": "\([^"]*\)".*/\1/p ' )
73- aiSearchIndex=$( echo " $deploymentOutputs " | sed -n ' s/.* "azurE_AI_SEARCH_INDEX_NAME": {"type": "String", "value": "\([^"]*\)".*/\1/p ' )
74- backendUrl=$( echo " $deploymentOutputs " | sed -n ' s/.* "backenD_URL": {"type": "String", "value": "\([^"]*\)".*/\1/p ' )
70+ storageAccount=$( echo " $deploymentOutputs " | grep -A 3 ' "azurE_STORAGE_ACCOUNT_NAME"' | grep ' "value" ' | sed ' s/.* "value": * "\([^"]*\)".*/\1/' )
71+ blobContainer=$( echo " $deploymentOutputs " | grep -A 3 ' "azurE_STORAGE_CONTAINER_NAME"' | grep ' "value" ' | sed ' s/.* "value": * "\([^"]*\)".*/\1/' )
72+ aiSearch=$( echo " $deploymentOutputs " | grep -A 3 ' "azurE_AI_SEARCH_NAME"' | grep ' "value" ' | sed ' s/.* "value": * "\([^"]*\)".*/\1/' )
73+ aiSearchIndex=$( echo " $deploymentOutputs " | grep -A 3 ' "azurE_AI_SEARCH_INDEX_NAME"' | grep ' "value" ' | sed ' s/.* "value": * "\([^"]*\)".*/\1/' )
74+ backendUrl=$( echo " $deploymentOutputs " | grep -A 3 ' "backenD_URL"' | grep ' "value" ' | sed ' s/.* "value": * "\([^"]*\)".*/\1/' )
7575
7676 # Validate that we extracted all required values
7777 if [ -z " $storageAccount " ] || [ -z " $blobContainer " ] || [ -z " $aiSearch " ] || [ -z " $aiSearchIndex " ] || [ -z " $backendUrl " ]; then
You can’t perform that action at this time.
0 commit comments