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

New function: Get-DcnConfiguration #197

Open
lowlydba opened this issue May 5, 2022 · 1 comment
Open

New function: Get-DcnConfiguration #197

lowlydba opened this issue May 5, 2022 · 1 comment

Comments

@lowlydba
Copy link
Contributor

lowlydba commented May 5, 2022

Is your feature request related to a problem? Please describe.
Since the module more or less relies on a config step, it'd be nice to have a wrapper for Get-PSFConfig -Module dbaclone to abstract the usage of the third party module involved.

This would make it easy to automate checking if the config needs to be (re)set, without making someone dig into the otherwise un-exposed usage of PowerShell Framework to handle the config metadata for the module. This could be helpful on CI build agents which might have harder resets or have new machines swapped out consistently.

An example might be:

if (-not(Get-DcnConfiguration)) {
   Set-DcnConfiguration ...
}
@lowlydba
Copy link
Contributor Author

lowlydba commented May 9, 2022

Otherwise, exposing Test-DcnConfiguration or a variation of it as a user function might also work.

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

1 participant