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

Items inside GetBeckupProtectedItems() collection cannot be parsed due to Error: 'Value cannot be an empty string. (Parameter 'resourceId')' #47381

Open
hyamchi opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Recovery Services Backup

Comments

@hyamchi
Copy link

hyamchi commented Dec 2, 2024

Library name and version

Azure.ResourceManager.RecoveryServicesBackup 1.2.0

Query/Question

Hi
I have the following snippet for my code:

//var backupProtectedItems = resourceGroupResource.GetBackupProtectedItemsAsync(request.VaultName, filter);
var backupProtectedItems = resourceGroupResource.GetBackupProtectedItems(request.VaultName);

foreach (var backupProtectedItem in backupProtectedItems) { // error on this line
// do sth;
}

The vault only has Vm backup items. when the vault has an item with stepped backup state ("protectionState": "ProtectionStopped") or softdleted item, the code errors out on line where I have foreach with error: 'Value cannot be an empty string. (Parameter 'resourceId')', it cannot parse the item. I am not sure if this is the expected behaviour.

can you pls help me to resolve this issue. Thanks

Environment

net 8 isolated runtime, azure durable function on consumption plan

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 2, 2024
@jsquire jsquire added Recovery Services Backup Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Dec 2, 2024
@jsquire
Copy link
Member

jsquire commented Dec 2, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Recovery Services Backup
Projects
None yet
Development

No branches or pull requests

3 participants