Skip to content

Commit

Permalink
using quotes bc dashes and using log
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherwin committed Dec 20, 2024
1 parent 769c463 commit d7748f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e_samples/parking_sensors/scripts/deploy_infrastructure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ log "Creating resource group: $appName"

arm_output=$(
az deployment group create \
--resource-group $resource_group_name \
--resource-group "$resource_group_name" \
--template-file "./infrastructure/modules/appservice.bicep" \
--parameters appName=$appName \
--parameters appName="$appName" \
--output json
)

if [[ -z $arm_output ]]; then
echo >&2 "AppService deployment failed."
log >&2 "AppService deployment failed."
exit 1
fi

arm_output=$(
az webapp deploy --resource-group $resource_group_name --name $appName --type zip --src-path ./data/data-simulator.zip
az webapp deploy --resource-group "$resource_group_name" --name "$appName" --type zip --src-path ./data/data-simulator.zip
)
API_BASE_URL="https://$appName.azurewebsites.net"

Expand Down

0 comments on commit d7748f0

Please sign in to comment.