Last active
July 24, 2023 12:24
-
-
Save GrillPhil/8a1e829a60b160ddc12561be29ce9a22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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