Share via


ArmDataMigrationModelFactory.DatabaseMigrationSqlVmProperties Method

Definition

Initializes a new instance of DatabaseMigrationSqlVmProperties.

public static Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlVmProperties DatabaseMigrationSqlVmProperties (string scope = default, string provisioningState = default, string migrationStatus = default, DateTimeOffset? startedOn = default, DateTimeOffset? endedOn = default, Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation sourceSqlConnection = default, string sourceDatabaseName = default, string sourceServerName = default, string migrationService = default, string migrationOperationId = default, Azure.ResourceManager.DataMigration.Models.ErrorInfo migrationFailureError = default, string targetDatabaseCollation = default, string provisioningError = default, Azure.ResourceManager.DataMigration.Models.MigrationStatusDetails migrationStatusDetails = default, Azure.ResourceManager.DataMigration.Models.BackupConfiguration backupConfiguration = default, Azure.ResourceManager.DataMigration.Models.OfflineConfiguration offlineConfiguration = default);
static member DatabaseMigrationSqlVmProperties : string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation * string * string * string * string * Azure.ResourceManager.DataMigration.Models.ErrorInfo * string * string * Azure.ResourceManager.DataMigration.Models.MigrationStatusDetails * Azure.ResourceManager.DataMigration.Models.BackupConfiguration * Azure.ResourceManager.DataMigration.Models.OfflineConfiguration -> Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlVmProperties
Public Shared Function DatabaseMigrationSqlVmProperties (Optional scope As String = Nothing, Optional provisioningState As String = Nothing, Optional migrationStatus As String = Nothing, Optional startedOn As Nullable(Of DateTimeOffset) = Nothing, Optional endedOn As Nullable(Of DateTimeOffset) = Nothing, Optional sourceSqlConnection As SqlConnectionInformation = Nothing, Optional sourceDatabaseName As String = Nothing, Optional sourceServerName As String = Nothing, Optional migrationService As String = Nothing, Optional migrationOperationId As String = Nothing, Optional migrationFailureError As ErrorInfo = Nothing, Optional targetDatabaseCollation As String = Nothing, Optional provisioningError As String = Nothing, Optional migrationStatusDetails As MigrationStatusDetails = Nothing, Optional backupConfiguration As BackupConfiguration = Nothing, Optional offlineConfiguration As OfflineConfiguration = Nothing) As DatabaseMigrationSqlVmProperties

Parameters

scope
String

Resource Id of the target resource (SQL VM or SQL Managed Instance).

provisioningState
String

Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.

migrationStatus
String

Migration status.

startedOn
Nullable<DateTimeOffset>

Database migration start time.

endedOn
Nullable<DateTimeOffset>

Database migration end time.

sourceSqlConnection
SqlConnectionInformation

Source SQL Server connection details.

sourceDatabaseName
String

Name of the source database.

sourceServerName
String

Name of the source sql server.

migrationService
String

Resource Id of the Migration Service.

migrationOperationId
String

ID tracking current migration operation.

migrationFailureError
ErrorInfo

Error details in case of migration failure.

targetDatabaseCollation
String

Database collation to be used for the target database.

provisioningError
String

Error message for migration provisioning failure, if any.

migrationStatusDetails
MigrationStatusDetails

Detailed migration status. Not included by default.

backupConfiguration
BackupConfiguration

Backup configuration info.

offlineConfiguration
OfflineConfiguration

Offline configuration.

Returns

A new DatabaseMigrationSqlVmProperties instance for mocking.

Applies to