ArmDataMigrationModelFactory.DatabaseMigrationProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of DatabaseMigrationProperties.
public static Azure.ResourceManager.DataMigration.Models.DatabaseMigrationProperties DatabaseMigrationProperties (string kind = "Unknown", 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);
static member DatabaseMigrationProperties : string * 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.DatabaseMigrationProperties
Public Shared Function DatabaseMigrationProperties (Optional kind As String = "Unknown", 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) As DatabaseMigrationProperties
Parameters
- kind
- String
- 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.
Returns
A new DatabaseMigrationProperties instance for mocking.