Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
v-schhabra committed Jan 11, 2024
1 parent c8ac11f commit b48dd32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
- name: serviceConnection
- name: Service Connection
displayName: Override Service Connection
type: string
default: '<from subscriptionConnection variable>'
Expand Down Expand Up @@ -30,7 +30,7 @@ steps:
displayName: 'AzureCLI $(serviceConnection)'
inputs:
addSpnToEnvironment: true
azureSubscription: '$(serviceConnection)' # Task property referencing Service Connection -------------------------------------------------------
azureSubscription: janARM # Task property referencing Service Connection -------------------------------------------------------
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
Expand Down Expand Up @@ -104,7 +104,7 @@ steps:
- task: AzurePowerShell@5
displayName: 'AzurePowerShell $(serviceConnection)'
inputs:
azureSubscription: '$(serviceConnection)'
azureSubscription: janARM
scriptType: inlineScript
inline: |
Get-AzContext Format-List
Expand Down

0 comments on commit b48dd32

Please sign in to comment.