it:ad:github:workflows:steps:howto:run_powershell:home

IT:AD:GitHub:Workflows:Steps:HowTo:Run Powershell

Summary

Assuming you have used another action to login to azure with an Azure Credential, you can then use azure specific powershell commands.

Note:
As stated [here]() by default logins enable just Azure CLI so you need to set a flag for the Az Powershell module to be available.

Example:

      - name: Azure PowerShell script
        uses: azure/powershell@v1
        with:
          azPSVersion: "latest"
          inlineScript: |
            Get-AzContext
  • /home/skysigal/public_html/data/pages/it/ad/github/workflows/steps/howto/run_powershell/home.txt
  • Last modified: 2024/04/28 04:59
  • by skys