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

Retrieving existing migrationprojects #9

Open
awdhaan opened this issue Aug 14, 2023 · 6 comments
Open

Retrieving existing migrationprojects #9

awdhaan opened this issue Aug 14, 2023 · 6 comments

Comments

@awdhaan
Copy link

awdhaan commented Aug 14, 2023

With the 'New-FlyMigrationProject' it is possible to create a new migration project via the public API, which is awesome.
With larger migration projects, it makes sense to check if a project exists prior to creating one.

Could such a cmdlet be added to the module? I'm currently working with module version 3.8.2

@tony-li-avepoint
Copy link
Contributor

tony-li-avepoint commented Aug 15, 2023

Hi @awdhaan,

Thanks for your feedback~
Currently we have a internal check logic in the 'New-FlyMigrationProject', there will be an error 'The project "{0}" already exists. Configure a unique name for the project.' if you specify a project name which already existed in Fly portal, you can have a test.
If this does not make sense for you, we can think about adding a new cmdlet to module, like Resolve-FlyMigrationProject to return a bool value or Get-FlyMigrationProject to return whole project info, which one do you prefer in this case?
Looking forward to your reply.

BR,
Tony

@awdhaan
Copy link
Author

awdhaan commented Aug 15, 2023

Thanks for the swift reply. I would prefer the Get-FlyMigrationProject to retrieve existing projects data. I see that being useful for multiple scenarios. Cheers :-)

@tony-li-avepoint
Copy link
Contributor

Hi @awdhaan,

Thanks for your quick reply, we add this in next release scope which will be published in October since we just released this version a few days ago.

BR,
Tony

@awdhaan
Copy link
Author

awdhaan commented Aug 15, 2023

That would be awesome!!! Thank you!

@tony-li-avepoint
Copy link
Contributor

Hi @awdhaan,

Want to inform you that we have added the cmdlet Get-FlyMigrationProject into new SDK with version 3.10.4, please kindly have a try and feel free let me know for any questions about it.

Thanks,
Tony

@awdhaan
Copy link
Author

awdhaan commented Oct 13, 2023

That's awesome @tony-li-avepoint . I will update and try the cmdlet. Thanks for implementing this.

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

No branches or pull requests

2 participants