opened
chriswahl
username_0
We already have `Get-RubrikSLA` but need a way to:

1. Output that to a flat file (preferably using JSON) somewhere
2. Input it into a new cmdlet, potentially named `New-RubrikSLA`

Ideally, this would be handy for creating templates of a configuration, or for validating a configuration in one place and migrating it to a configuration in another place (internal to external, lab to field, etc.)
Create a way to export / import SLA domain config
issue
created
Lucas-Fueyo
username_1
Made a merge request which enabled basic json export into the `Get-RubrikSLA` cmdlet. 

In order to be able to create a "full" template of the SLA Domains we would still have to : 
- Create a `Get-RubrikReplication` and `Get-RubrikArchival` cmdlets, export their configuration using json and interpret everything through `New-RubrikSLA`. 

What would be great for the `New-RubrikSLA` would be to : 
- Update the SLA Domain properties if it already exists (new cmdlet to create, for example `Set-RubrikSLA`)
- Prompts the user in case the Replication Target / Archival location doesn't already exist  and asks for their creation.
comment
created
chriswahl
username_0
@username_1 Good points. I didn't even think about the creation of Archive / Replication; was assuming the admin would populate those in advance. My only concern with exporting those pieces are the secret keys / passwords for the respective targets.
comment
created
Lucas-Fueyo
username_1
The secret keys could indeed be a problem. The admin would have to plan this one and if he did, I guess it would nearly be easier to do the archival / replication declaration through the web GUI.
comment
created
chriswahl
username_0
Partially resolves #23
comment
created
chriswahl
username_0
The use of `Get-RubrikSLA` and `New-RubrikSLA` solves the majority of this issue. I'm purposefully leaving out the replication and archive details as those would likely change across entities (from reseller to customer or site to site) anyway.

ref: https://github.com/rubrikinc/PowerShell-Module/commit/9f0b5c50a14a9ed728c74a7c1115dbccefee187e
comment
closed
chriswahl
username_0
issue