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

SqlDatabase and siblings: Support for login type 'SqlLogin' #2056

Open
tlxreh opened this issue Jan 29, 2025 · 1 comment
Open

SqlDatabase and siblings: Support for login type 'SqlLogin' #2056

tlxreh opened this issue Jan 29, 2025 · 1 comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@tlxreh
Copy link

tlxreh commented Jan 29, 2025

This is a feature / improvement request.

From the examples a new database can be created like so:

        SqlDatabase 'Create_Database'
        {
            Ensure               = 'Present'
            ServerName           = 'sqltest.company.local'
            InstanceName         = 'DSC'
            Name                 = 'Contoso'

            PsDscRunAsCredential = $SqlAdministratorCredential
        }

But underneath the connection to the server is done with Connect-SQL like so:

$sqlServerObject = Connect-SQL -ServerName $ServerName -InstanceName $InstanceName -ErrorAction 'Stop'

This means if you don't have Windows Authentication between the machine running the configuration and the machine running SQL Server, and would want to use SqlLogin for the login type, you're blocked at the moment.

@tlxreh tlxreh changed the title SqlDatabase and siblings: Support for login type 'SqlServer' SqlDatabase and siblings: Support for login type 'SqlLogin' Jan 29, 2025
@johlju
Copy link
Member

johlju commented Jan 29, 2025

This seems to be an issue for all of the MOF-based DSC resources. Happy to see a PR that adds this logic to one DSC resource to start, with unit tests.

@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants