Skip to content

Commit 21a5966

Browse files
authored
Ado sample pipeline (#126)
* fix carlm params * added vmss backup state file path to log * corrected recovery parameter sets * version bump * fix arg timeout, test template imrpovements * version bump * added ado sample pipeline
1 parent 857e0db commit 21a5966

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
parameters:
2+
- name: resourceGroupName
3+
displayName: ResourceGroupName
4+
type: string
5+
- name: basicLoadBalancerName
6+
displayName: basicLoadBalancerName
7+
type: string
8+
9+
trigger: none
10+
11+
pool:
12+
vmImage: windows-latest
13+
14+
steps:
15+
- task: AzurePowerShell@5
16+
inputs:
17+
azureSubscription: '<YOUR_SERVICE_CONNECTION_NAME>'
18+
ScriptType: 'InlineScript'
19+
Inline: |
20+
# installing the Az.ResourceGraph module. a copy could instead be placed in your repo to avoid the installation, which can be slow
21+
Write-Host "Installing Az.resourceGraph module"
22+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
23+
Install-Module Az.ResourceGraph -Scope CurrentUser -Force -Confirm:$false
24+
25+
Write-Host "Importing the Az.ResourceGraph"
26+
Import-Module Az.ResourceGraph
27+
28+
# this step assumes you have a copy of the AzureBasicLoadBalancerUpgrade module in your repo's localModules directory. alternatively, you could use the Install-Module command as above
29+
Write-Host "Importing AzureBasicLoadBalancerUpgrade module"
30+
Import-Module ./localModules/AzureBasicLoadBalancerUpgrade
31+
32+
Start-AzBasicLoadBalancerUpgrade -ResourceGroupName ${{ parameters.resourceGroupName }} -BasicLoadBalancerName ${{ parameters.basicLoadBalancerName}} -FollowLog -Force
33+
azurePowerShellVersion: 'LatestVersion'
34+
pwsh: true

0 commit comments

Comments
 (0)