Skip to content

Commit

Permalink
[CI environment] Added subscription context for supporting MG scope s…
Browse files Browse the repository at this point in the history
…ervice connections (#1775)

* Added subscription context for supprting management group scope service connections

* Update .azuredevops/platformPipelines/platform.dependencies.yml

Co-authored-by: Alexander Sehr <ASehr@hotmail.de>

Co-authored-by: Alexander Sehr <ASehr@hotmail.de>
  • Loading branch information
ChrisSidebotham and AlexanderSehr authored Aug 13, 2022
1 parent f7e61fe commit 0c3b53a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .azuredevops/platformPipelines/platform.dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ stages:
$null = Convert-TokensInFileList @ConvertTokensInputs
# Get storage account name
if (-not [String]::IsNullOrEmpty('$(ARM_SUBSCRIPTION_ID)')) {
Write-Verbose 'Setting context to subscription [$(ARM_SUBSCRIPTION_ID)]'
$null = Set-AzContext -Subscription '$(ARM_SUBSCRIPTION_ID)'
}
$storageAccountParameters = (ConvertFrom-Json (Get-Content -path $parameterFilePath -Raw)).parameters
# Upload files to storage account
Expand Down

0 comments on commit 0c3b53a

Please sign in to comment.