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

Add MSA example #9400

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion public/Install-DbaInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ function Install-DbaInstance {
Install SQL Server 2016 instance into D:\Root drive, set default data folder as E: and default logs folder as L:.
Perform volume maintenance tasks permission is granted. MyDomain\SvcSqlServer is used as a service account for SqlServer.

.Example
PS C:\> $svcAcc = [PSCredential]::new("MyDomain\SvcSqlServer$", [SecureString]::new())
PS C:\> Install-DbaInstance -Version 2016 -InstancePath D:\Root -DataPath E: -LogPath L: -PerformVolumeMaintenanceTasks -EngineCredential $svcAcc

The same as the last example except MyDomain\SvcSqlServer is now a Managed Service Account (MSA).

.Example
PS C:\> $config = @{
>> AGTSVCSTARTUPTYPE = "Manual"
Expand Down Expand Up @@ -823,4 +829,4 @@ function Install-DbaInstance {
$actionPlan | Invoke-Parallel -ImportModules -ImportVariables @invokeParallelSplat
}
}
}
}
Loading