Azure / Azure/azure-rest-api-specs

[BUG] Recovery Services example for AzureIaasVm V2 policy not working

Open
#33,786 0 comments 0 reactions 0 assignees View on GitHub
bug customer-reported Mgmt question Recovery Services Backup Service Attention
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.