azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

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

Open davidsandbrand opened this issue 2 years ago • 1 comments

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

davidsandbrand avatar Sep 01 '22 14:09 davidsandbrand

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Sep 02 '22 14:09 ghost

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Sharmistha-Rai.

Issue Details

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

Author: davidsandbrand
Assignees: -
Labels:

Recovery Services Site-Recovery, Service Attention, question, customer-reported

Milestone: -

ghost avatar Oct 28 '22 02:10 ghost

Adding Service team to assist on this.

@Sharmistha-Rai Could you please look into this once you get a chance ? Thanks in advance.

navba-MSFT avatar Oct 28 '22 02:10 navba-MSFT

@Sharmistha-Rai , I was just wondering if you've had a chance to look at this in the past 13 months?

davidsandbrand avatar Nov 22 '23 21:11 davidsandbrand