Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How do you update powershell module here #474

Closed
chanakanissanka opened this issue Feb 12, 2024 · 6 comments
Closed

How do you update powershell module here #474

chanakanissanka opened this issue Feb 12, 2024 · 6 comments

Comments

@chanakanissanka
Copy link

Hi Folks,
We intend to use this EPAC for our Azure Governance initiative, and one thing that came up during the evaluation was how best to stay up-to-date with the releases here with our local copy. Apologies If I'm asking something obvious here, still we can't get our head around how releases can be automated.

regards,
Chanaka

@anwather
Copy link
Collaborator

Use the PowerShell module from the gallery (EnterprisePolicyAsCode) - it is updated when releases are made via this GitHub repo

@chanakanissanka
Copy link
Author

@anwather sorry for taking time to come back...Is this what's already been used here - https://github.com/Azure/enterprise-azure-policy-as-code/tree/main/Module ?

@anwather
Copy link
Collaborator

@chanakanissanka
Please read https://azure.github.io/enterprise-azure-policy-as-code/quick-start/ for how to manage the module code.
You can either use the PowerShell module (EnterprisePolicyAsCode) or you can fork and clone this repository. Using the PowerShell module is recommended as you do not have to maintain the scripts folder to keep in sync with changes. All you need is a folder for you definitions etc. The Module folder is used internally by the development team to automatically build the PowerShell module when a new release is generated.

For instance - most of my projects only contain a single folder for Definitions - I use the PowerShell module to then run the commands to build and deploy policy and roles.

@chanakanissanka
Copy link
Author

@anwather Thanks for this clear instructions and that makes sense.

@chanakanissanka
Copy link
Author

@anwather I have no option but to fork the repo due to some bs regulations. Would it be possible to get an idea of the best way to accommodate future releases other than copying and pasting those scripts? Sorry if I'm asking something obvious.

@anwather
Copy link
Collaborator

anwather commented Feb 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants