@Madhusudhana Rao Dasari I understand you have some questions regarding Azure Policy. I would be happy to assist you. If you find the below content helpful, please consider accepting it as an answer. If you have further questions, please reply here and I would be happy to assist you further.
You can use either the Azure Portal or GitHub, depending on how your policies are managed. Here are the steps for both methods:
Azure Portal
- Navigate to Azure Policy: Go to the Azure Portal and search for “Azure Policy.”
- Select Exemptions: In the Azure Policy dashboard, select “Exemptions” under the “Authoring” section.
- Find the Expired Exemption: Locate the expired exemption you want to remove.
- Delete the Exemption: Click on the exemption and select “Delete.”
GitHub
If your Azure policies are managed as code in a GitHub repository:
- Locate the Exemption File: Find the JSON file that defines the policy exemption in your repository.
- Remove or Update the File: Delete the file or update it to remove the exemption.
- Commit and Push Changes: Commit your changes and push them to the repository.
Best Practices
The best practice depends on your organization’s workflow:
- Azure Portal: Ideal for quick, manual changes.
- GitHub: Preferred for organizations using Infrastructure as Code (IaC) practices, ensuring changes are tracked and version controlled.