Azure / Azure/azure-rest-api-specs
[Question] RecoveryServicesBackup, WorkloadType property isn't returned from the GET response
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/bms.json#L11376-L11401
### API Spec version
2025-02-01
### Question/Query
The `WorkloadType` property is defined in `AzureVMAppContainerProtectionContainer`, but it is missing from GET protected item API endpoint.
```
GET https://management.azure.com/subscriptions/***/resourceGroups/ase-tfm-test-rg/providers/Microsoft.RecoveryServices/vaults/ase-tfm-test-rsv/backupFabrics/Azure/protectionContainers/VMAppContainer%3BCompute%3Base-tfm-test-rg%3Base-tfm-test-vm?api-version=2025-02-01
cache-control: no-cache
content-length: 1163
content-type: application/json; charset=utf-8
date: Thu, 18 Sep 2025 07:56:14 GMT
expires: -1
pragma: no-cache
x-content-type-options: nosniff
x-ms-correlation-request-id: f175f121-89af-49eb-a63d-20fc4678e062
x-ms-request-id: f175f121-89af-49eb-a63d-20fc4678e062
{
"id": "/subscriptions/***/resourceGroups/ase-tfm-test-rg/providers/Microsoft.RecoveryServices/vaults/ase-tfm-test-rsv/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;ase-tfm-test-rg;ase-tfm-test-vm",
"name": "VMAppContainer;Compute;ase-tfm-test-rg;ase-tfm-test-vm",
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers",
"properties": {
"sourceResourceId": "/subscriptions/***/resourceGroups/ase-tfm-test-rg/providers/Microsoft.Compute/virtualMachines/ase-tfm-test-vm",
"lastUpdatedTime": "2025-09-18T07:43:14.9730285Z",
"extendedInfo": {
"hostServerName": "ase-tfm-test-vm",
"inquiryInfo": {
"status": "Success",
"errorDetail": {
"code": "Success",
"message": "",
"recommendations": [
""
]
},
"inquiryDetails": [
{
"type": "SAPAse",
"itemCount": 11,
"inquiryValidation": {
"status": "Success",
"errorDetail": {
"code": "Success",
"message": "",
"recommendations": [
""
]
},
"additionalDetail": ""
}
}
]
}
},
"friendlyName": "ase-tfm-test-vm",
"backupManagementType": "AzureWorkload",
"registrationStatus": "Registered",
"healthStatus": "Healthy",
"containerType": "VMAppContainer",
"protectableObjectType": "VMAppContainer"
}
}
```
### Environment
_No response_
Contributor guide
Research direction
Start with the Azure Recovery Services bms.json definition at lines 11376-11401 and compare AzureVMAppContainerProtectionContainer with the documented GET protected-container response. Trace whether WorkloadType is expected in the response schema or only in the service behavior; done means the specification and the reported endpoint behavior have a confirmed, documented resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100