Custom policy export feature on portal.

Maduka, Chibueze F 20 Reputation points
2024-06-26T16:23:44.84+00:00

Hi , so I am trying find out if the EXPORT POLICY feature that used to be available on the Azure portal was removed? I have use it a while back but I don't see that option on there any more .

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

Accepted answer
  1. Prashant Kumar 780 Reputation points Microsoft Employee
    2024-07-10T06:22:55.54+00:00

    Hi

    You can use Visual Studio Code for this: https://azure.microsoft.com/en-us/products/visual-studio-code

    Once you are logged into your Azure Subscription in VS code and MS Azure Policy extension is installed in VS Code, you can view all the policy definitions and assignments in VS code.

    User's image

    Save all the needed policy as json files in your local directory with save as option and then connect to Github through VS Code- Source Control.

    You can use either VS UI or bash to push all the policy json files to any of your Github repository.

    User's image

    You can find more information on Github and VS code integration online.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Sina Salam 12,491 Reputation points
    2024-06-26T22:06:06.4833333+00:00

    Hello Maduka, Chibueze F,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    Problem

    I understand that you are trying to find out if the EXPORT POLICY feature that used to be available on the Azure portal was removed.

    Solution

    Sure, the "Export definitions" feature in Azure Policy was recently removed.

    It's no longer available through the portal. However, you can still export policies using the SDK. For more details, check out the updated documentation on Export Azure Policy resources via https://learn.microsoft.com/en-us/azure/governance/policy/how-to/export-resources

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.