Skip to content

Commit 358ee2b

Browse files
authored
Update README.md
1 parent 1f09c2c commit 358ee2b

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333

34-
- uses: azure/login@v1
34+
- uses: azure/login@v1.1
3535
with:
3636
creds: ${{ secrets.AZURE_CREDENTIALS }}
3737

@@ -48,11 +48,11 @@ jobs:
4848

4949
on: [push]
5050

51-
name: AzurePowerShellLoginSample
51+
name: AzurePowerShellSample
5252

5353
jobs:
5454

55-
build:
55+
build-and-deploy:
5656
runs-on: ubuntu-latest
5757
steps:
5858

@@ -61,9 +61,19 @@ jobs:
6161
with:
6262
creds: ${{secrets.AZURE_CREDENTIALS}}
6363
enable-AzPSSession: true
64+
65+
- name: Run Az CLI script
66+
run: |
67+
az webapp list --query "[?state=='Running']"
68+
69+
- name: Run Azure PowerShell script
70+
uses: azure/powershell@v1
71+
with:
72+
azPSVersion: '3.1.0'
73+
inlineScript: |
74+
Get-AzVM -ResourceGroupName "ActionsDemo"
75+
6476
65-
- run: |
66-
Get-AzVM -ResourceGroupName "ResourceGroup11"
6777

6878
```
6979

0 commit comments

Comments
 (0)