# Backup and DR

**URL:** <https://discuss.google.dev/t/backup-and-dr/150996>\
**Category:** Compute Infrastructure\
**Tags:** backup-and-dr\
**Created:** [April 9, 2024, 7:48am UTC](https://discuss.google.dev/t/backup-and-dr/150996 "2024-04-09T07:48:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyasuresh1993](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/priyasuresh1993/32/2653_2.png) [@priyasuresh1993](https://discuss.google.dev/u/priyasuresh1993)\
**Post date:** [April 9, 2024, 7:48am UTC](https://discuss.google.dev/t/backup-and-dr/150996/1 "2024-04-09T07:48:12Z")

</div>

Hi Team,

We want to automate the process of adding the new compute en handgine VMs to the backup and Dr appliance

We have created seperate logical groups for each project and applied the backup template on each of these at the logical group level

Is there a way to automate the process of adding the newl discovered instance to the logical group through script as we dont want to handle this from the management console

We are aware of [https://github.com/Actifio/AGMPowerCLI/blob/main/UsageExamples.md#compute-engine-instance-onboarding-automation](https://github.com/Actifio/AGMPowerCLI/blob/main/UsageExamples.md#compute-engine-instance-onboarding-automation) but this doesnot talk about adding instances to a particular logical group or creating a logical logical via commands

Anyone has ever tried automating this

---

<div class="post-metadata">

**Author:** ![rajeshkrmekala](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/rajeshkrmekala/32/121601_2.png) [@rajeshkrmekala](https://discuss.google.dev/u/rajeshkrmekala)\
**Post date:** [April 9, 2024, 3:15pm UTC](https://discuss.google.dev/t/backup-and-dr/150996/2 "2024-04-09T15:15:35Z")

</div>

With the new ‘Automatic BackupDR Protection with Google Cloud Tags’ feature, you can easily use Google Cloud tags to create backup policies for your Compute Engine VMs. For more information refer

[https://cloud.google.com/backup-disaster-recovery/docs/create-plan/dynamic-protection](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/dynamic-protection)

---

<div class="post-metadata">

**Author:** ![ashikag](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/ashikag/32/75903_2.png) [@ashikag](https://discuss.google.dev/u/ashikag)\
**Post date:** [April 11, 2024, 2:31am UTC](https://discuss.google.dev/t/backup-and-dr/150996/3 "2024-04-11T02:31:57Z")

</div>

Feel free to also follow the guided demo here: [https://youtu.be/J0mdbiHL90I](https://youtu.be/J0mdbiHL90I)

---

<div class="post-metadata">

**Author:** ![priyasuresh1993](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/priyasuresh1993/32/2653_2.png) [@priyasuresh1993](https://discuss.google.dev/u/priyasuresh1993)\
**Post date:** [April 12, 2024, 10:41am UTC](https://discuss.google.dev/t/backup-and-dr/150996/4 "2024-04-12T10:41:03Z")

</div>

Hi Rajesh,

When trying to create the profile for dynamic protection tags the templates are getting listed but the profiles are not. Does anything needs to be checked?

---

<div class="post-metadata">

**Author:** ![rajeshkrmekala](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/rajeshkrmekala/32/121601_2.png) [@rajeshkrmekala](https://discuss.google.dev/u/rajeshkrmekala)\
**Post date:** [April 12, 2024, 2:58pm UTC](https://discuss.google.dev/t/backup-and-dr/150996/5 "2024-04-12T14:58:59Z")

</div>

To create, update, and delete Dynamic Protection Tags, you need to have one of the following roles:

- Backup and DR Admin
- Backup and DR Backup User
- Backup and DR User V2
- Project Editor
- Project Owner
- a custom role that includes the following permissions:

#### Required permissions

- `backupdr.managementServers.listDynamicProtection`
- `backupdr.managementServers.getDynamicProtection`
- `backupdr.managementServers.createDynamicProtection`
- `backupdr.managementServers.deleteDynamicProtection`
- `compute.instances.listEffectiveTags```

For more information refer [https://cloud.google.com/backup-disaster-recovery/docs/create-plan/dynamic-protection#required-permissions-attach](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/dynamic-protection#required-permissions-attach)

---

<div class="post-metadata">

**Author:** ![priyasuresh1993](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/priyasuresh1993/32/2653_2.png) [@priyasuresh1993](https://discuss.google.dev/u/priyasuresh1993)\
**Post date:** [April 15, 2024, 10:26am UTC](https://discuss.google.dev/t/backup-and-dr/150996/6 "2024-04-15T10:26:04Z")

</div>

Hi Rajesh,

Already have project owner role assigned which ha all the above mentioned permissions, still dont see the profile in the drop down

---

<div class="post-metadata">

**Author:** ![rajeshkrmekala](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/rajeshkrmekala/32/121601_2.png) [@rajeshkrmekala](https://discuss.google.dev/u/rajeshkrmekala)\
**Post date:** [April 15, 2024, 1:19pm UTC](https://discuss.google.dev/t/backup-and-dr/150996/7 "2024-04-15T13:19:57Z")

</div>

Ensure the Backup Appliance is running a supported version and is the Standard type for Compute Engine VMs

 ![Screenshot 2024-04-15 at 9.17.01 AM.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/9/2/92d9b1b37f98663e4d5ba56e1a3709398ec62768.png)

---

<div class="post-metadata">

**Author:** ![priyasuresh1993](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/priyasuresh1993/32/2653_2.png) [@priyasuresh1993](https://discuss.google.dev/u/priyasuresh1993)\
**Post date:** [April 16, 2024, 12:04pm UTC](https://discuss.google.dev/t/backup-and-dr/150996/8 "2024-04-16T12:04:27Z")

</div>

Thanks Rajesh that helped, upgrading the Backup appliance to the supported version for this feature
