Is there any built-in/community solution for exporting azure policy code?

ALVIN LEUNG (CLOUD-ISD-OOCLL/HKG) 166 Reputation points
2022-08-12T09:35:33.457+00:00

I have researched and there is a preview function to export policy code to github. Is there any solutions similar to this but its GITLAB? Thanks

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
790 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 20,941 Reputation points MVP
    2022-08-12T09:43:07+00:00

    Hi,
    You can always run PowerShell or Az CLI command to do that. My suggestion is to deploy your custom policy definitions, definitions sets and policy assignments via ARM/Bicep. That way your configuration will always be in code, and you will not need to export it.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful