I want to delete virtual machine if backup policy enabled and backup should be taken before 12 hours if backup not taken since 2 days then show the popup message to user please take backup .
I want to achieve this using azure .net SDK or Fluent API?
I want to delete virtual machine if backup policy enabled and backup should be taken before 12 hours if backup not taken since 2 days then show the popup message to user please take backup .
I want to achieve this using azure .net SDK or Fluent API?
@DnyaneshwarSurywanshi-3200 , thank you for reaching out to us. To check backup policy enable for a Virtual machine, you will have to make a call to REST API. Backup Status - Get gets the backup status of your Virtual Machine - Check out Azure REST API on details about setup required for calling Azure API from your code.
Further, you can use a DB (like Cosmos DB) to store status for last queried time for a Backup policy status for each VM. Let me know if this answers your question.
@HarshitaSingh-MSFT Thank you for the reply but i got the solution using Fluent API.
17 people are following this question.