Skip to content

Export-DbaInstance - Wire up IncludeDbMasterKey to export certs and master keys#10251

Merged
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-8105-20260315-1838
Mar 16, 2026
Merged

Export-DbaInstance - Wire up IncludeDbMasterKey to export certs and master keys#10251
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-8105-20260315-1838

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Implements certificate and master key export via the existing -IncludeDbMasterKey switch which was previously a dead stub parameter.

Changes

  • Adds EncryptionPassword and DecryptionPassword [Security.SecureString] parameters
  • Calls Backup-DbaDbCertificate when -IncludeDbMasterKey is set (cert export, with private keys when password provided)
  • Calls Backup-DbaDbMasterKey when -IncludeDbMasterKey + -EncryptionPassword are set
  • Adds DbCertificates to -Exclude ValidateSet for fine-grained control
  • Updates parameter validation test

Closes #8105

Generated with Claude Code

…aster keys

Implements certificate and master key export via -IncludeDbMasterKey switch:
- Adds EncryptionPassword and DecryptionPassword [Security.SecureString] params
- Calls Backup-DbaDbCertificate when -IncludeDbMasterKey is set
- Calls Backup-DbaDbMasterKey when -IncludeDbMasterKey and -EncryptionPassword are set
- Adds DbCertificates to -Exclude ValidateSet for fine-grained control
- Updates parameter validation test with new parameters

Closes #8105

(do Export-DbaInstance)

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

beautiful 🫶

@potatoqualitee potatoqualitee merged commit fe26c87 into development Mar 16, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-8105-20260315-1838 branch March 16, 2026 18:34
potatoqualitee added a commit that referenced this pull request Apr 10, 2026
#10251)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 certs/keys export to Export-DbaInstance

2 participants