Azure / Azure/azure-libraries-for-java

Azure SQL Backup Long Term Retention Policy calls old version

Open
#593 0 comments 0 reactions 0 assignees View on GitHub
customer-reported SQL
Dominant language
Java
Stars
97
Forks
102
PR merge metrics
No merged PRs in 30d

Description

Hi,

Trying to list the backup retention policies. Latest version - 0.15.1

List retentions = az.getSQLAPI().inner().backupLongTermRetentionPolicies().listByDatabase(database.resourceGroupName(), database.sqlServerName(), database.name())

Get a message:

{"code":"0","message":"Configure long term retention policy with azure recovery service vault and policy is no longer supported. Please submit request with the new flexible retention policy","target":null,"details":[{"code":"0","message":"Configure long term retention policy with azure recovery service vault and policy is no longer supported. Please submit request with the new flexible retention policy","target":null,"severity":"16"}],"innererror":[]}

On the webservice method it's calling an old version:

..../databases/marketplace/backupLongTermRetentionPolicies?api-version=2014-04-01

There is a new one according to the doc:

https://docs.microsoft.com/en-us/rest/api/sql/backuplongtermretentionpolicies/listbydatabase

api-version=2017-03-01-preview

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.