Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Simple Content Import/Export #196

Open
kclinden opened this issue Feb 8, 2019 · 3 comments
Open

Add support for Simple Content Import/Export #196

kclinden opened this issue Feb 8, 2019 · 3 comments

Comments

@kclinden
Copy link
Contributor

kclinden commented Feb 8, 2019

Add a cmdlet to support a simple content import/export similar to the cloud client. This is useful for when you only want to import a single blueprint, property definition, etc...

#Export a blueprint by ID
Export-vRAContentSimple --Id 6d9a107e-def0-4236-9348-30301600dd3d -Path ./CentOS.yaml

#Get a vRA Blueprint by name, and then export
Get-vRABlueprint -Name CentOS | Export-vRAContentSimple -Path .

#Import a Blueprint
Import-vRAContentSimple --ContentType Composite-Blueprint --Path ./CentOS.yaml
@kclinden
Copy link
Contributor Author

kclinden commented Feb 8, 2019

I will be working on this

@kclinden
Copy link
Contributor Author

kclinden commented Feb 8, 2019

Looking closer at this it appears there is already a Get-vRAContentData which is essentially the same thing as the export just without logic to handle saving it to a file.

Which of these possible solutions would be better:

  • Modify the current cmdlet to accept piping and exporting
  • Create a specific import/export cmdlet as mentioned in the original post

@jonathanmedd
Copy link
Contributor

I'd go for Export-vRAContentData as an extra function, even if it does predominantly the same thing as Get-vRAContentData, but includes the extra step to get it out to a file.

Having the extra Export function makes it easier for users IMO quickly find which function to use just by the name of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants