Custom policy export feature on portal.

Maduka, Chibueze F 20 Reputation points

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.
827 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prashant Kumar 150 Reputation points Microsoft Employee


    You can use Visual Studio Code for this:

    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 6,966 Reputation points

    Hello Maduka, Chibueze F,

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


    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.


    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

    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