Azure / CanadaPubSecALZ

This reference implementation is based on Cloud Adoption Framework for Azure and provides an opinionated implementation that enables ITSG-33 regulatory compliance by using NIST SP 800-53 Rev. 4 and Canada Federal PBMM Regulatory Compliance Policy Sets.
MIT License
121 stars 87 forks source link

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

Closed aporodnov closed 8 months ago

aporodnov commented 8 months ago

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 commented 8 months ago

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