Skip to content

Connect-DbaInstance - Add -AuthenticationType parameter for Entra ID support#10271

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-9851-20260320-1839
Mar 28, 2026
Merged

Connect-DbaInstance - Add -AuthenticationType parameter for Entra ID support#10271
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-9851-20260320-1839

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Closes #9851

Adds a new -AuthenticationType parameter to Connect-DbaInstance that exposes the SMO AuthenticationMethod enum, enabling Entra ID (Azure AD) authentication including MFA via ActiveDirectoryInteractive, without requiring -AppendConnectionString workarounds.

Changes

  • Added -AuthenticationType parameter with ValidateSet for all supported Entra ID auth methods
  • Properly sets UseIntegratedSecurity = $false for interactive/integrated auth types
  • Added parameter documentation and examples
  • Updated parameter validation test

Generated with Claude Code

…support

Adds a new -AuthenticationType parameter that exposes the SMO AuthenticationMethod
enum, enabling Entra ID (Azure AD) authentication including MFA via
ActiveDirectoryInteractive, without requiring -AppendConnectionString workarounds.

(do Connect-DbaInstance)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee
Copy link
Copy Markdown
Member

awesome, thank you 🙌🏼

@potatoqualitee potatoqualitee merged commit 50c0bfd into development Mar 28, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-9851-20260320-1839 branch March 28, 2026 07:25
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

Successfully merging this pull request may close these issues.

Add Entra ID Support to connecting to SQL Server Instances

2 participants