Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions samples/url-shortener/python/bicep/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ else
exit 1
fi

# Newer Azure CLI versions may print a Bicep notice on stdout; keep only the JSON outputs
DEPLOYMENT_OUTPUTS=$(echo "$DEPLOYMENT_OUTPUTS" | sed -n '/^{/,$p')

WEB_APP_NAME=$(echo "$DEPLOYMENT_OUTPUTS" | jq -r .webAppName.value)
FUNCTION_APP_NAME=$(echo "$DEPLOYMENT_OUTPUTS" | jq -r .functionAppName.value)
WEB_APP_HOSTNAME=$(echo "$DEPLOYMENT_OUTPUTS" | jq -r .webAppHostName.value)
Expand Down
2 changes: 1 addition & 1 deletion samples/url-shortener/python/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ echo "Creating [$POSTGRES_DB_NAME] database on the [$POSTGRES_SERVER_NAME] Postg
az postgres flexible-server db create \
--server-name $POSTGRES_SERVER_NAME \
--resource-group $RESOURCE_GROUP_NAME \
--name $POSTGRES_DB_NAME 1>/dev/null
--database-name $POSTGRES_DB_NAME 1>/dev/null

if [[ $? == 0 ]]; then
echo "[$POSTGRES_DB_NAME] database successfully created on the [$POSTGRES_SERVER_NAME] PostgreSQL flexible server"
Expand Down
Loading