Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade form v1 to v2 #101

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
steps:

- name: Login via Az module
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true

- name: Run Azure PowerShell inline script
uses: azure/powershell@v1
uses: azure/powershell@v2
with:
inlineScript: |
Get-AzVM -ResourceGroupName "ResourceGroup11"
Expand Down Expand Up @@ -73,13 +73,13 @@ jobs:
uses: actions/checkout@v3

- name: Login Azure
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true

- name: Run Azure PowerShell Script File
uses: azure/powershell@v1
uses: azure/powershell@v2
with:
inlineScript: ./scripts/run_azps_cmdlets.ps1
azPSVersion: "latest"
Expand All @@ -90,7 +90,7 @@ You can also run the script file with parameters. For example:

```yaml
- name: Run Azure PowerShell Script File
uses: azure/powershell@v1
uses: azure/powershell@v2
with:
inlineScript: ./scripts/run_azps_cmdlets.ps1 myresourcegroup myresourcename
azPSVersion: "latest"
Expand All @@ -100,7 +100,7 @@ or

```yaml
- name: Run Azure PowerShell Script File
uses: azure/powershell@v1
uses: azure/powershell@v2
with:
inlineScript: ./scripts/run_azps_cmdlets.ps1 -ResourceGroupName myresourcegroup -ResourceName myresourcename
azPSVersion: "latest"
Expand All @@ -110,14 +110,14 @@ or

```yaml
- name: Login to Azure US Gov Cloud with Az Powershell
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_US_GOV_CREDENTIALS }}
environment: 'AzureUSGovernment'
enable-AzPSSession: true

- name: Run powershell command in US Gov Cloud
uses: azure/powershell@v1
uses: azure/powershell@v2
with:
inlineScript: "Get-AzContext"
azPSVersion: "latest"
Expand Down
Loading