question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SDK for CRUD operations on recovery services vault backup policies

See original GitHub issue

Hi,

I can see there are list operations for listing backup policies: https://docs.microsoft.com/en-gb/javascript/api/azure-arm-recoveryservicesbackup/backuppolicies?view=azure-node-2.2.0

However I can’t find any way to get, create, update or delete a backup policy - do these exist? In the past you have suggested calling APIs directly with sendRequest, so I’m wondering if that’s an option here?

Also, are there SDK functions to attach backup policies to a VM?

Thanks, Mike.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelBurgesscommented, Jan 15, 2018

+1 on suggestion by @amarzavery. I have finally managed to get this working thanks, but have to admit that it’s pretty opaque right now as to how to work with these backup APIs.

Thanks for your help so far.

1reaction
amarzaverycommented, Jan 15, 2018

Though a specific format for container name is required protectedItems.CreateOrUpdate()

@DheerendraRathor - Thanks for confirming this. Unless I wouldn’t have bothered to talk to my colleagues in python CLI team and take a look at the test written by you over there, I would have never figured out what is it that one should do in this scenario. This is clearly not the ideal way. It would be great, if in the description for containerName in the swagger spec in the azure-rest-api-specs repo please provide

  • an example of a specific format
  • clear explanation that container refers to an Azure VM and that there is no REST API to create this artifact.

If this is documented correctly, it will be reflected in

  • the rest api documentation and
  • the sdk documentation on docs.microsoft.com website.

/cc @salameer @johanste.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create backup policies using REST API - Azure
In this article, you'll learn how to create and manage backup policies (schedule and retention) using REST API.
Read more >
Usage notes - Amazon DynamoDB - AWS Documentation
Encryption - Backups created with the AWS Backup plan are stored in an encrypted vault with a key that is managed by the...
Read more >
Overview of Events - Oracle Help Center
Oracle Cloud Infrastructure Events enables you to create automation based on the state changes of resources throughout your tenancy.
Read more >
azure python SDK retrieve backup items from recoverservices ...
mgmt.compute import ComputeManagementClient from azure. ... RecoveryServices/vaults/your_vault_name/backupProtectedItems? ... token["access_token"] ...
Read more >
Azure Backup Policy: Examples, Tutorials, and Best Practices
Here are a few examples of the built-in backup policies provided by Azure Policy: Configure VM backups to a new Recovery Services vault—backup...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found