Skip to content

Instantly share code, notes, and snippets.

@GrillPhil
Last active July 24, 2023 12:24
Show Gist options
  • Save GrillPhil/8a1e829a60b160ddc12561be29ce9a22 to your computer and use it in GitHub Desktop.
Save GrillPhil/8a1e829a60b160ddc12561be29ce9a22 to your computer and use it in GitHub Desktop.
$deploymentResult = az deployment group create `
--resource-group $($ENV:AZ_PLATFORM_RESOURCE_GROUP_NAME) `
--name $($ENV:DEPLOYMENT_NAME) `
--template-file "$($ENV:STAGE_BICEP_PATH)/main.bicep" `
--parameters `
productPrefix="$($ENV:AZ_DEPLOYMENT_NAME)" `
envName="$($ENV:ENV_NAME)" `
appClientId="$($ENV:APP_CLIENT_ID)" `
appClientSecret="$($ENV:APP_CLIENT_SECRET)" `
| ConvertFrom-Json
$deploymentOutput = $deploymentResult.properties.outputs
Write-Host "##vso[task.setvariable variable=AZDPL_staticWebAppName]$($deploymentOutput.staticWebAppName.value)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment