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