Azure / Azure/azure-powershell

[Az.RecoveryServices] How can group actions be set programatically on a RSV recovery plan?

Open
#19,372 4 comments 0 reactions 0 assignees View on GitHub
customer-reported question Recovery Services Site-Recovery Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

`Get-AzRecoveryServicesAsrRecoveryPlan` already returns information about pre-group and post-group actions that have already been configured. This can be found in the `$Result.Groups[2].StartGroupActions` & `$Result.Groups[2].EndGroupActions` objects.

How can these actions be defined programatically? I have tried changing the values of the in-memory object, hoping to then use `Update-AzRecoveryServicesAsrRecoveryPlan` to submit those changes, but not all of the relevant fields/values can be edited.

In large enterprises, it is unreasonable to use the portal to define these actions; I currently have two actions to define on 68 different vaults (with more coming soon) - surely there must be some way to programatically define the actions, right?

### Script or Debug output

_No response_

### Environment data

_No response_

### Module versions

_No response_

### Error output

_No response_

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.