Closed wlhutchison closed 3 years ago
Hey @wlhutchison, if you want to use powershell action for running any Az-ps script you need to set enable-AzPSSession: true
. So the login action part which is a prerequisite should look like
- name: 'Az CLI login'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
enable-AzPSSession: true
This will definitely accept your azPSVersion: "latest"
in the workflow.
closing this issue. Feel free to reopen this if the issue persists.
On the Ubuntu runner, the following yaml snipped will generate an exception (burying the output) :
The exception output is:
This happens when azPSVersion is latest, 'latest', or "latest".
However it works if a specific azPSVersion is specified such as: 3.1.0 or 6.1.0.
That is, the following action.yml generates the appropriate output:
In this case, the run succeeds without an exception:
On a Windows runner, the azPSVersion works with either the latest or a numeric specification.