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

feat: add sql failover group customer managed policy recommendation #532

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jdmsoss
Copy link
Contributor

@jdmsoss jdmsoss commented Nov 20, 2024

Overview/Summary

New Azure SQL recommendation based on following official documentation best practice: Setting your failover policy to customer managed is highly recommended, as it keeps you in control of when to initiate a failover and restore business continuity. You can initiate a failover when you notice an unexpected outage impacting one or more databases in the failover group.

As part of this pull request I have

  • Read the Contribution Guide and ensured this PR is compliant with the guide
  • Checked for duplicate Pull Requests
  • Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Ensured PR tests are passing
  • Performed testing and provided evidence (e.g. screenshot of output) for any changes associated to ARG queries
  • Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

@jdmsoss jdmsoss requested a review from a team as a code owner November 20, 2024 09:20
@microsoft-github-policy-service microsoft-github-policy-service bot added the Enhancement 🆕 New feature or request label Nov 20, 2024
@ejhenry ejhenry added the Area: Resource Guidance 📝 Improvements or additions to documentation label Nov 25, 2024
@ejhenry
Copy link
Contributor

ejhenry commented Nov 27, 2024

Thanks @jdmsoss, please also include a kql file for the new recommendation in this PR.

@jdmsoss
Copy link
Contributor Author

jdmsoss commented Nov 28, 2024

Thanks @jdmsoss, please also include a kql file for the new recommendation in this PR.

Unfortunately, it seems that this information is not exposed in ARG. Therefore, you will have to check it manually.

@ejhenry
Copy link
Contributor

ejhenry commented Dec 3, 2024

Thanks @jdmsoss, please also include a kql file for the new recommendation in this PR.

Unfortunately, it seems that this information is not exposed in ARG. Therefore, you will have to check it manually.

For this scenario we will want a kql file indicating the recommendation cannot be validated with ARG. This is needed by the APRL scripts. Details are here: https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/contributing/create-content/create-arg-queries/

@oZakari oZakari added the Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author label Dec 3, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity label Dec 9, 2024
@jdmsoss
Copy link
Contributor Author

jdmsoss commented Dec 9, 2024

Thanks @jdmsoss, please also include a kql file for the new recommendation in this PR.

Unfortunately, it seems that this information is not exposed in ARG. Therefore, you will have to check it manually.

For this scenario we will want a kql file indicating the recommendation cannot be validated with ARG. This is needed by the APRL scripts. Details are here: https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/contributing/create-content/create-arg-queries/

Indeed, that makes sense. Sorry for forgetting that. I'll fix it as soon as I have a slot for APRL contribution on my side.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 Needs attention from aprl-maintainers and removed Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity labels Dec 9, 2024
@oZakari oZakari added Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author and removed Needs: Attention 👋 Needs attention from aprl-maintainers labels Dec 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity label Dec 16, 2024
@jdmsoss
Copy link
Contributor Author

jdmsoss commented Dec 16, 2024

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Please allow me some time to apply this change

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 Needs attention from aprl-maintainers and removed Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity labels Dec 16, 2024
@oZakari oZakari added Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author and removed Needs: Attention 👋 Needs attention from aprl-maintainers labels Dec 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity label Dec 20, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author label Dec 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity label Dec 24, 2024
Copy link
Collaborator

@oZakari oZakari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ejhenry
Copy link
Contributor

ejhenry commented Jan 7, 2025

@jdmsoss can you update your PR to address the failed checks? Let me know if you have any questions about the checks or needed changes.

@ejhenry ejhenry added the Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author label Jan 7, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity label Jan 13, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author Status: No Recent Activity 🏜️ The issue or pull request has not had any recent activity labels Jan 13, 2025
@jdmsoss
Copy link
Contributor Author

jdmsoss commented Jan 13, 2025

@jdmsoss can you update your PR to address the failed checks? Let me know if you have any questions about the checks or needed changes.

@ejhenry it should be ok now!

@jdmsoss
Copy link
Contributor Author

jdmsoss commented Jan 14, 2025

It seems yaml_file_check failed because:

Error validating data './azure-resources/Sql/servers/recommendations.yaml' with schema '.github/scripts/schemas/aprl-schema.yaml' 7.recommendationControl: 'Disaster Recovery' not in ('HighAvailability', 'BusinessContinuity', 'DisasterRecovery', 'Scalability', 'MonitoringAndAlerting', 'ServiceUpgradeAndRetirement', 'OtherBestPractices', 'Personalized', 'Governance', 'Security')

But when I look at the other recommendations in this file, none of them are properly formatted according to this rule.

I don't see how to fix the problem which for me goes beyond my PR (I can change recommendationControl value of my new reco but what about all other recommendations using the same synthaxis regarding this rule?).

@oZakari
Copy link
Collaborator

oZakari commented Jan 14, 2025

Hey @jdmsoss, the value needs to be DisasterRecovery and not 'Disaster Recovery'. Your branch is out of date which is why the other files still have spaces.

If you join the Azure org with your account, I would be able to sync your branch and also update the value as a future reference.

@oZakari oZakari added the Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author label Jan 14, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback 👂 The issue or pull request needs feedback from the original author label Jan 15, 2025
@jdmsoss
Copy link
Contributor Author

jdmsoss commented Jan 15, 2025

Hey @jdmsoss, the value needs to be DisasterRecovery and not 'Disaster Recovery'. Your branch is out of date which is why the other files still have spaces.

If you join the Azure org with your account, I would be able to sync your branch and also update the value as a future reference.

Hi @oZakari I see. I submitted a new commit to fix the whole file to align with this change. I hope this time it's the right one!

@oZakari
Copy link
Collaborator

oZakari commented Jan 15, 2025

@jdmsoss There appear to be some merge conflicts that will need to be resolved prior to us being able to re-run the tests. Ping me if you need help though.

@jdmsoss
Copy link
Contributor Author

jdmsoss commented Jan 16, 2025

@oZakari Decidedly ... Ok I take note of these new conflicts. Otherwise wouldn't it be easier for me to reopen a PR based on the current main repo version to submit this conflict-free PR?
If so, I'll reference the new PR in this PR and then close it, because we're wasting more time than this new recommendation will save us 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Resource Guidance 📝 Improvements or additions to documentation Enhancement 🆕 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants