Items inside GetBeckupProtectedItems() collection cannot be parsed due to Error: 'Value cannot be an empty string. (Parameter 'resourceId')' #47381
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
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
The text was updated successfully, but these errors were encountered: