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
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/uksouth/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/$openai_name --verbose; then
166
+
echo "Failed to purge openai resource: $openai_name"
167
+
else
168
+
echo "Purged the openai resource: $openai_name"
169
+
fi
170
+
171
+
# Purge MultiService Account Resource
172
+
echo "Purging the MultiService Account Resource..."
173
+
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/uksouth/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/$multiservice_account_name --verbose; then
174
+
echo "Failed to purge multiService account resource: $multiservice_account_name"
175
+
else
176
+
echo "Purged the multiService account resource: $multiservice_account_name"
177
+
fi
178
+
179
+
# Ensure KEYVAULTS is properly formatted as a comma-separated string
180
+
KEYVAULTS="${{ env.KEYVAULTS }}"
181
+
182
+
# Remove the surrounding square brackets, if they exist
183
+
stripped_keyvaults=$(echo "$KEYVAULTS" | sed 's/\[\|\]//g')
184
+
185
+
# Convert the comma-separated string into an array
186
+
IFS=',' read -r -a keyvault_array <<< "$stripped_keyvaults"
0 commit comments