Skip to content

SqlLogin: Resource refactoring proposal #2173

@johlju

Description

@johlju

Resource proposal

A class-based SqlLogin resource would ensure SQL Server logins exist, are enabled or disabled, and have correct properties. Commands would include Get-SqlDscLogin, New-SqlDscLogin, Remove-SqlDscLogin, Enable-SqlDscLogin, Disable-SqlDscLogin, and Test-SqlDscIsLoginEnabled.

Proposed properties

Property Type qualifier Data type Description Default value Allowed values
Ensure Key String Whether the login should be Present or Absent Present Present, Absent
Name Key String Login name None Any valid login name
LoginType Write String Type of login (SQL, Windows, etc.) None SQLLogin, WindowsUser, etc.
DefaultDatabase Write String Default database for login None Any valid database name
Enabled Write Boolean Whether the login is enabled True True, False
Password Write SecureString Password for SQL logins None Valid password

Special considerations or limitations

Must support both SQL and Windows logins, handle enable/disable scenarios, and ensure idempotency. Contributors should ensure sensitive data is handled securely and account for permissions required to manage logins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.resource proposalThe issue is proposing a new resource in the resource module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions