@@ -33,13 +33,13 @@ jobs:
3333 steps :
3434
3535 - name : Login via Az module
36- uses : azure/login@v2
36+ uses : azure/login@v3
3737 with :
3838 creds : ${{secrets.AZURE_CREDENTIALS}}
3939 enable-AzPSSession : true
4040
4141 - name : Run Azure PowerShell inline script
42- uses : azure/powershell@v2
42+ uses : azure/powershell@v3
4343 with :
4444 inlineScript : |
4545 Get-AzVM -ResourceGroupName "ResourceGroup11"
@@ -70,16 +70,16 @@ jobs:
7070 steps:
7171
7272 - name: Check Out
73- uses: actions/checkout@v3
73+ uses: actions/checkout@v6
7474
7575 - name: Login Azure
76- uses: azure/login@v2
76+ uses: azure/login@v3
7777 with:
7878 creds: ${{secrets.AZURE_CREDENTIALS}}
7979 enable-AzPSSession: true
8080
8181 - name: Run Azure PowerShell Script File
82- uses: azure/powershell@v2
82+ uses: azure/powershell@v3
8383 with:
8484 inlineScript: ./scripts/run_azps_cmdlets.ps1
8585 azPSVersion: "latest"
@@ -90,7 +90,7 @@ You can also run the script file with parameters. For example:
9090
9191` ` ` yaml
9292 - name: Run Azure PowerShell Script File
93- uses: azure/powershell@v2
93+ uses: azure/powershell@v3
9494 with:
9595 inlineScript: ./scripts/run_azps_cmdlets.ps1 myresourcegroup myresourcename
9696 azPSVersion: "latest"
100100
101101` ` ` yaml
102102 - name: Run Azure PowerShell Script File
103- uses: azure/powershell@v2
103+ uses: azure/powershell@v3
104104 with:
105105 inlineScript: ./scripts/run_azps_cmdlets.ps1 -ResourceGroupName myresourcegroup -ResourceName myresourcename
106106 azPSVersion: "latest"
110110
111111` ` ` yaml
112112 - name: Login to Azure US Gov Cloud with Az Powershell
113- uses: azure/login@v2
113+ uses: azure/login@v3
114114 with:
115115 creds: ${{ secrets.AZURE_US_GOV_CREDENTIALS }}
116116 environment: 'AzureUSGovernment'
117117 enable-AzPSSession: true
118118
119119 - name: Run powershell command in US Gov Cloud
120- uses: azure/powershell@v2
120+ uses: azure/powershell@v3
121121 with:
122122 inlineScript: "Get-AzContext"
123123 azPSVersion: "latest"
0 commit comments