Skip to content

Releases: Azure/powershell

Azure PowerShell Action v2

27 Mar 07:23
Compare
Choose a tag to compare

What's Changed

  • Update the action to use Node.js 20 by @YanaXu in #100

Azure PowerShell Action v1.4.0

20 Nov 08:27
Compare
Choose a tag to compare
  • Supported macOS and self-hosted runners.

GitHub Action for Azure PowerShell

13 May 06:10
Compare
Choose a tag to compare

GitHub action for Azure PowerShell enables to automate your GitHub workflows using Azure PowerShell scripts.

Get started today with a free Azure account!

The definition of this GitHub Action is in action.yml.

End-to-End Sample Workflow

Login to Azure before running Azure PowerShell scripts using Azure Login. Refer Azure Login action on how to configure Azure credentials.

Once login is done, Azure PowerShell action will use the same session to run the script.

###Sample workflow to run inline script using Azure PowerShell

on: [push]

name: AzurePowerShellSample

jobs:

  build:
    runs-on: ubuntu-latest
    steps:
    
    - name: Login via Az module
      uses: azure/login@v1.1
      with:
        creds: ${{secrets.AZURE_CREDENTIALS}}
        enable-AzPSSession: true 
        
    - name: Run Azure PS script
      uses: azure/powershell@v1
      with:
        inlineScript: |
          Get-AzVM -ResourceGroupName "MyResourceGroup"
        azPSVersion: '3.1.0'

Azure PowerShell Script to be executed can be given under inlineScript as shown in the sample workflow.

Azure PowerShell Action v1.3.0

06 Nov 07:25
Compare
Choose a tag to compare
  • Updated the versions of dependencies.
  • Added an example to run a PowerShell script file.
  • Updated the User Agent of Azure PowerShell Action.

Updated with Node16 and Code scanning workflow for incoming changes

19 Nov 10:54
eb762bd
Compare
Choose a tag to compare
Merge pull request #71 from Azure/modules-fix

Modules fix