--- title: "New-VBRMSSQLCredentialsOptions" description: "Creates Microsoft SQL Server credentials configuration that defines the connection between Veeam Backup & Replication and a discovered Microsoft SQL Server instance for Veeam Plug-In for Microsoft SQL Server backup operations." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbrmssqlcredentialsoptions.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Plug-Ins for Enterprise Applications, MongoDB Backup and Epic EHR System Protection > Working with Managed Veeam Plug-Ins, MongoDB Backup and Epic EHR System Protection > Application Backup Policy Settings for Veeam Plug-In for Microsoft SQL Server > New-VBRMSSQLCredentialsOptions" dateModified: "2026-08-19" --- # New-VBRMSSQLCredentialsOptions ## Short Description Creates Microsoft SQL Server credentials configuration that defines the connection between Veeam Backup & Replication and a discovered Microsoft SQL Server instance for Veeam Plug-In for Microsoft SQL Server backup operations. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` New-VBRMSSQLCredentialsOptions -Instance -Credentials [-UseSAAccount] [] ``` ## Detailed Description This cmdlet applies to application backup policies for Veeam Plug-In for Microsoft SQL Server. Use this cmdlet to set authentication credentials for the Microsoft SQL Server instance. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Credentials

Specifies the credentials used to connect to the Microsoft SQL Server instance.

Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet.

CCredentials

True

Named

False

Instance

Defines the discovered Microsoft SQL Server instance.

VBRDiscoveredMSSQL

True

Named

False

UseSAAccount

Applies use of Microsoft SQL Server authentication account for authentication instead of the supplied Windows OS credentials.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Associate Discovered Microsoft SQL Server Instance with Specific Credentials This example shows how to apply stored service account credentials to the discovered Microsoft SQL Server instance. ``` $creds = Get-VBRCredentials -Name "SQL_Account" $mssqlInstances = Get-VBRDiscoveredApplication -MSSQL -MSSQLEntityType -Instance $mssqlInstance = $mssqlInstances[0] $sqlcredentials = New-VBRMSSQLCredentialsOptions -Credentials $creds -Instance $mssqlInstance ``` Perform the following steps: 1. Run the [`Get-VBRCredentials`](get-vbrcredentials.md) cmdlet. Save the result to the `$creds` variable. 2. Run the [`Get-VBRDiscoveredApplication`](get-vbrdiscoveredapplication.md) cmdlet. Specify the `MSSQL`, `MSSQLEntityType` and `Instance` parameters. Save the result to the `$mssqlInstances` variable. 3. Run the `New-VBRMSSQLCredentialsOptions` cmdlet. Specify the `Credentials` parameter with the `$creds` variable. Specify the `Instance` parameter with the name of the Microsoft SQL Server instance. Save the result to the `$sqlcredentials` variable. :::