fix(sdk): use case-insensitive comparison for Azure VM backup checks#10395
Open
HugoPBrito wants to merge 3 commits intomasterfrom
Open
fix(sdk): use case-insensitive comparison for Azure VM backup checks#10395HugoPBrito wants to merge 3 commits intomasterfrom
HugoPBrito wants to merge 3 commits intomasterfrom
Conversation
- Compare VM names with .lower() in vm_backup_enabled and vm_sufficient_daily_backup_retention_period - Add tests to verify case-insensitive matching between VM names and backup item names - Update SDK changelog
Contributor
|
✅ All necessary |
Contributor
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #10395 +/- ##
==========================================
- Coverage 93.38% 86.17% -7.21%
==========================================
Files 219 223 +4
Lines 30398 5743 -24655
==========================================
- Hits 28386 4949 -23437
+ Misses 2012 794 -1218
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
🔒 Container Security ScanImage: 📊 Vulnerability Summary
4 package(s) affected
|
danibarranqueroo
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Fix #10372
Azure sometimes stores VM names in the Recovery Services vault with different casing than the VM resource name itself (e.g.,
VMTESTin vault vsvmtestin VM). This causes false negatives where a VM is flagged as not backed up even though it is protected. This is a known Azure behavior.Description
.lower()) when matching VM names against backup item names invm_backup_enabledandvm_sufficient_daily_backup_retention_periodchecksSteps to review
.lower()comparison change in both check filestest_vm_protected_by_backup_case_insensitiveandtest_vm_with_sufficient_retention_case_insensitiveChecklist
Community Checklist
SDK/CLI
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.