Skip to content
New issue

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

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

Already on GitHub? # to your account

GitHub Actions with RunWorkflows.ps1 does not work after Az module new version release #392

Closed
aporodnov opened this issue Nov 15, 2023 · 1 comment · Fixed by #393
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@aporodnov
Copy link
Contributor

Describe the bug
The PowerShell script fails when trying to execute #required line in RunWorkflows.ps1 or EnvironmentContext.ps1 after the recent Az module update.

To Reproduce
Steps to reproduce the behavior: Run any GitHub action for Azure deployment

Additional context
After the AZ Module update, we found that we need to remove:

  1. The line "#Requires -Modules Az, powershell-yaml" from RunWorkflows.ps1
  2. The line "#Requires -Modules powershell-yaml" from EnvironmentContext.ps1
@skeeler skeeler added the bug Something isn't working label Nov 15, 2023
@skeeler skeeler added this to the v1.4.0 milestone Nov 15, 2023
@skeeler
Copy link
Contributor

skeeler commented Nov 15, 2023

The "#Requires" lines from these scripts as well should be removed or commented out:

  • scripts/configuration/Get-AlzConfiguration.ps1
  • scripts/configuration/New-AlzCredential.ps1
  • scripts/configuration/Remove-AlzCredential.ps1
  • scripts/configuration/New-AlzDeployment.ps1
  • scripts/configuration/New-AlzConfiguration.ps1
  • scripts/configuration/Test-AlzCredential.ps1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants