Azure / Azure/azure-rest-api-specs
[BUG] Recovery Services example for AzureIaasVm V2 policy not working
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
### API Spec link
specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json
### API Spec version
2025-02-01
### Describe the bug
Hi,
when trying to run the example in https://github.com/Azure/azure-rest-api-specs/blob/abb839b726184aa10f8d1eaac8e9fe590833619c/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json
I receive the following error from API:
```
{
"error": {
"code": "BMSUserErrorInvalidPolicyInput",
"message": "Input for create or update policy is not in proper format. Please check format of parameters like schedule time, schedule days, retention time and retention days "
}
}
```
Please fix the example
### Expected behavior
Working example
### Actual behavior
Example does not work
### Reproduction Steps
Run example via curl
### Environment
_No response_
Contributor guide
Research direction
Start with specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json and run the example via curl. Compare its schedule and retention parameters with the API error, then verify that the corrected example produces a successful response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100