Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

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

Open davidsandbrand opened 2 years ago

davidsandbrand commented 2 years ago

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

ghost commented 2 years ago

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

ghost commented 2 years ago

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: -
navba-MSFT commented 2 years ago

Adding Service team to assist on this.

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

davidsandbrand commented 12 months ago

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