Compartir a través de


ArmDatabaseWatcherModelFactory.SqlMITargetProperties Method

Definition

Initializes a new instance of SqlMITargetProperties.

public static Azure.ResourceManager.DatabaseWatcher.Models.SqlMITargetProperties SqlMITargetProperties(Azure.ResourceManager.DatabaseWatcher.Models.TargetAuthenticationType targetAuthenticationType = default, Azure.ResourceManager.DatabaseWatcher.Models.TargetAuthenticationVaultSecret targetVault = default, string connectionServerName = default, Azure.ResourceManager.DatabaseWatcher.Models.DatabaseWatcherResourceProvisioningState? provisioningState = default, Azure.Core.ResourceIdentifier sqlMiResourceId = default, int? connectionTcpPort = default, bool? readIntent = default);
static member SqlMITargetProperties : Azure.ResourceManager.DatabaseWatcher.Models.TargetAuthenticationType * Azure.ResourceManager.DatabaseWatcher.Models.TargetAuthenticationVaultSecret * string * Nullable<Azure.ResourceManager.DatabaseWatcher.Models.DatabaseWatcherResourceProvisioningState> * Azure.Core.ResourceIdentifier * Nullable<int> * Nullable<bool> -> Azure.ResourceManager.DatabaseWatcher.Models.SqlMITargetProperties
Public Shared Function SqlMITargetProperties (Optional targetAuthenticationType As TargetAuthenticationType = Nothing, Optional targetVault As TargetAuthenticationVaultSecret = Nothing, Optional connectionServerName As String = Nothing, Optional provisioningState As Nullable(Of DatabaseWatcherResourceProvisioningState) = Nothing, Optional sqlMiResourceId As ResourceIdentifier = Nothing, Optional connectionTcpPort As Nullable(Of Integer) = Nothing, Optional readIntent As Nullable(Of Boolean) = Nothing) As SqlMITargetProperties

Parameters

targetAuthenticationType
TargetAuthenticationType

The type of authentication to use when connecting to a target.

targetVault
TargetAuthenticationVaultSecret

To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored.

connectionServerName
String

The FQDN host name of the server to use in the connection string when connecting to a target. For example, for an Azure SQL logical server in the Azure commercial cloud, the value might be 'sql-logical-server-22092780.database.windows.net'; for an Azure SQL managed instance in the Azure commercial cloud, the value might be 'sql-mi-39441134.767d5869f605.database.windows.net'. Port number and instance name must be specified separately.

provisioningState
Nullable<DatabaseWatcherResourceProvisioningState>

The provisioning state of the resource.

sqlMiResourceId
ResourceIdentifier

The Azure resource ID of an Azure SQL Managed Instance target.

connectionTcpPort
Nullable<Int32>

The TCP port number to optionally use in the connection string when connecting to an Azure SQL Managed Instance target.

readIntent
Nullable<Boolean>

Set to true to monitor a high availability replica of specified target, if any.

Returns

A new SqlMITargetProperties instance for mocking.

Applies to