diff --git a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml
index 61c622b140f6..812e407e1ce6 100644
--- a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml
+++ b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml
@@ -408,9 +408,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AuthenticationKeys
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AuthenticationKeys
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AuthenticationKeys
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AuthenticationKeys
@@ -436,9 +436,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob
@@ -476,9 +476,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetails
@@ -558,9 +558,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigration
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigration
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigration
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigration
@@ -598,9 +598,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBase
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBase
@@ -656,9 +656,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseListResult
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseListResult
@@ -678,9 +678,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties
@@ -748,9 +748,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo
@@ -806,9 +806,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult
@@ -828,9 +828,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationListResult
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationListResult
@@ -850,9 +850,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties
@@ -950,9 +950,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo
@@ -1032,9 +1032,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb
@@ -1168,9 +1168,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi
@@ -1298,9 +1298,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM
@@ -1428,9 +1428,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb
@@ -1468,9 +1468,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi
@@ -1508,9 +1508,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM
@@ -1548,9 +1548,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode
@@ -1576,9 +1576,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo
@@ -1604,9 +1604,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IntegrationRuntimeMonitoringData
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IntegrationRuntimeMonitoringData
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IntegrationRuntimeMonitoringData
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IntegrationRuntimeMonitoringData
@@ -1626,9 +1626,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput
@@ -1648,9 +1648,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService
@@ -1712,9 +1712,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceListResult
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceListResult
@@ -1734,9 +1734,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties
@@ -1762,9 +1762,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags
@@ -1784,9 +1784,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails
@@ -1860,9 +1860,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation
@@ -1906,9 +1906,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollection
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollection
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollection
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollection
@@ -1946,9 +1946,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails
@@ -1992,9 +1992,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringData
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringData
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringData
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringData
@@ -2056,9 +2056,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration
@@ -2084,9 +2084,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationListResult
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationListResult
@@ -2106,9 +2106,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinition
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinition
@@ -2140,9 +2140,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition
@@ -2180,9 +2180,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource
@@ -2202,9 +2202,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.RegenAuthKeys
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.RegenAuthKeys
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.RegenAuthKeys
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.RegenAuthKeys
@@ -2236,9 +2236,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation
@@ -2258,9 +2258,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfo
@@ -2322,9 +2322,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo
@@ -2398,9 +2398,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation
@@ -2444,9 +2444,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails
@@ -2472,9 +2472,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration
@@ -2494,9 +2494,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare
@@ -2522,9 +2522,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationListResult
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationListResult
@@ -2544,9 +2544,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService
@@ -2584,9 +2584,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties
@@ -2612,9 +2612,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags
@@ -2634,9 +2634,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated
@@ -2686,9 +2686,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation
@@ -2714,9 +2714,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TrackedResourceAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TrackedResourceAutoGenerated
- Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TrackedResourceAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TrackedResourceAutoGenerated
diff --git a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1 b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1
index fd406da2ad36..360148914a69 100644
--- a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1
+++ b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.DataMigration.private.dll'
FormatsToProcess = './Az.DataMigration.format.ps1xml'
- FunctionsToExport = 'Get-AzDataMigrationAssessment', 'Get-AzDataMigrationPerformanceDataCollection', 'Get-AzDataMigrationSkuRecommendation', 'Get-AzDataMigrationSqlService', 'Get-AzDataMigrationSqlServiceAuthKey', 'Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric', 'Get-AzDataMigrationSqlServiceMigration', 'Get-AzDataMigrationToSqlDb', 'Get-AzDataMigrationToSqlManagedInstance', 'Get-AzDataMigrationToSqlVM', 'Invoke-AzDataMigrationCutoverToSqlManagedInstance', 'Invoke-AzDataMigrationCutoverToSqlVM', 'New-AzDataMigrationLoginsMigration', 'New-AzDataMigrationSqlServerSchema', 'New-AzDataMigrationSqlService', 'New-AzDataMigrationSqlServiceAuthKey', 'New-AzDataMigrationTdeCertificateMigration', 'New-AzDataMigrationToSqlDb', 'New-AzDataMigrationToSqlManagedInstance', 'New-AzDataMigrationToSqlVM', 'Register-AzDataMigrationIntegrationRuntime', 'Remove-AzDataMigrationSqlService', 'Remove-AzDataMigrationSqlServiceNode', 'Remove-AzDataMigrationToSqlDb', 'Stop-AzDataMigrationToSqlDb', 'Stop-AzDataMigrationToSqlManagedInstance', 'Stop-AzDataMigrationToSqlVM', 'Update-AzDataMigrationSqlService', '*'
+ FunctionsToExport = 'Get-AzDataMigrationAssessment', 'Get-AzDataMigrationPerformanceDataCollection', 'Get-AzDataMigrationSkuRecommendation', 'Get-AzDataMigrationSqlService', 'Get-AzDataMigrationSqlServiceAuthKey', 'Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric', 'Get-AzDataMigrationSqlServiceMigration', 'Get-AzDataMigrationToSqlDb', 'Get-AzDataMigrationToSqlManagedInstance', 'Get-AzDataMigrationToSqlVM', 'Invoke-AzDataMigrationCutoverToSqlManagedInstance', 'Invoke-AzDataMigrationCutoverToSqlVM', 'Invoke-AzDataMigrationRetryToSqlDb', 'New-AzDataMigrationLoginsMigration', 'New-AzDataMigrationSqlServerSchema', 'New-AzDataMigrationSqlService', 'New-AzDataMigrationSqlServiceAuthKey', 'New-AzDataMigrationTdeCertificateMigration', 'New-AzDataMigrationToSqlDb', 'New-AzDataMigrationToSqlManagedInstance', 'New-AzDataMigrationToSqlVM', 'Register-AzDataMigrationIntegrationRuntime', 'Remove-AzDataMigrationSqlService', 'Remove-AzDataMigrationSqlServiceNode', 'Remove-AzDataMigrationToSqlDb', 'Remove-AzDataMigrationToSqlManagedInstance', 'Remove-AzDataMigrationToSqlVM', 'Stop-AzDataMigrationToSqlDb', 'Stop-AzDataMigrationToSqlManagedInstance', 'Stop-AzDataMigrationToSqlVM', 'Update-AzDataMigrationSqlService', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{
diff --git a/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs b/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs
index afda2f1fbe24..e1df1e769c22 100644
--- a/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs
@@ -20,7 +20,11 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataMigration")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("0.14.10")]
-[assembly: System.Reflection.AssemblyVersionAttribute("0.14.10")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.15.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.15.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
+
+
+
+
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1
index ae7679fb960f..782b197cf881 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1
@@ -29,7 +29,7 @@ Get-AzDataMigrationSqlService
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservice
#>
function Get-AzDataMigrationSqlService {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1
index 9c06fb7b177e..0851f47ebc91 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1
@@ -23,12 +23,12 @@ Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.
Get-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceauthkey
#>
function Get-AzDataMigrationSqlServiceAuthKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1
index afad985da54d..a4a27b40afe4 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1
@@ -26,12 +26,12 @@ $item = Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric -ResourceGroupName
$item.Node[0]
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceintegrationruntimemetric
#>
function Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1
index e61df0ff84fa..651094fc2b14 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1
@@ -23,12 +23,12 @@ Retrieve the List of database migrations attached to the service.
Get-AzDataMigrationSqlServiceMigration -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservicemigration
#>
function Get-AzDataMigrationSqlServiceMigration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1
index 0ae3018b89a5..e5535c1060c1 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1
@@ -28,7 +28,7 @@ $dbMigration.MigrationStatusDetailMigrationState
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqldb
#>
function Get-AzDataMigrationToSqlDb {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1
index ff1be4dd8e46..81570860736e 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1
@@ -28,7 +28,7 @@ $miMigration.MigrationStatusDetail
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlmanagedinstance
#>
function Get-AzDataMigrationToSqlManagedInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1
index c9a9dad77d6a..29ee5294bde8 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1
@@ -28,7 +28,7 @@ $vmMigration.MigrationStatusDetail
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlvm
#>
function Get-AzDataMigrationToSqlVM {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Invoke-AzDataMigrationRetryToSqlDb.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Invoke-AzDataMigrationRetryToSqlDb.ps1
new file mode 100644
index 000000000000..03eda01f66e0
--- /dev/null
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Invoke-AzDataMigrationRetryToSqlDb.ps1
@@ -0,0 +1,266 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Retry on going migration for the database.
+.Description
+Retry on going migration for the database.
+.Example
+Invoke-AzDataMigrationRetryToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName sqldb -MigrationOperationId migOpId
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ManagedInstanceName ]:
+ [MigrationName ]: Name of the migration.
+ [MigrationServiceName ]: Name of the Migration Service.
+ [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ [SqlDbInstanceName ]:
+ [SqlMigrationServiceName ]: Name of the SQL Migration Service.
+ [SqlVirtualMachineName ]:
+ [SubscriptionId ]: Subscription ID that identifies an Azure subscription.
+ [TargetDbName ]: The name of the target database.
+ [TargetResourceName ]: The name of the target resource/account.
+
+MIGRATIONOPERATIONINPUT : Migration Operation Input
+ MigrationOperationId : ID tracking migration operation.
+.Link
+https://learn.microsoft.com/powershell/module/az.datamigration/invoke-azdatamigrationretrytosqldb
+#>
+function Invoke-AzDataMigrationRetryToSqlDb {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='RetryExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Retry', Mandatory)]
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # Name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Retry', Mandatory)]
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # .
+ ${SqlDbInstanceName},
+
+ [Parameter(ParameterSetName='Retry')]
+ [Parameter(ParameterSetName='RetryExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Subscription ID that identifies an Azure subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Retry', Mandatory)]
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # The name of the target database.
+ ${TargetDbName},
+
+ [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Retry', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput]
+ # Migration Operation Input
+ # To construct, see NOTES section for MIGRATIONOPERATIONINPUT properties and create a hash table.
+ ${MigrationOperationInput},
+
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')]
+ [System.String]
+ # ID tracking migration operation.
+ ${MigrationOperationId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Retry = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_Retry';
+ RetryExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryExpanded';
+ RetryViaIdentity = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentity';
+ RetryViaIdentityExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded';
+ }
+ if (('Retry', 'RetryExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1
index 59421f10597c..3269d143a1e4 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1
@@ -23,12 +23,12 @@ Create or Update Database Migration Service.
New-AzDataMigrationSqlService -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -Location "eastus2"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlservice
#>
function New-AzDataMigrationSqlService {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1
index 2802d8683d44..eedb809d7b92 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1
@@ -23,12 +23,12 @@ Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.
New-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -KeyName AuthKey2
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserviceauthkey
#>
function New-AzDataMigrationSqlServiceAuthKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys])]
[CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1
index bf14cc1adad4..1bb384b437a6 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1
@@ -33,12 +33,12 @@ $targetPassword = ConvertTo-SecureString -String $password -AsPlainText -Force
New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" -TableList "table_1"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqldb
#>
function New-AzDataMigrationToSqlDb {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1
index db543b75740f..04df4c6b5c39 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1
@@ -31,12 +31,12 @@ New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -Ma
New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -ManagedInstanceName "MyManagedInstance" -TargetDbName "MyDb" -Kind "SqlMI" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyRG/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -AzureBlobStorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -AzureBlobContainerName "container" -AzureBlobAccountKey "accountKey"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlmanagedinstance
#>
function New-AzDataMigrationToSqlManagedInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1
index bf93b32426a8..10dc86bf168b 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1
@@ -26,12 +26,12 @@ $filesharePassword = ConvertTo-SecureString -String $password -AsPlainText -Forc
New-AzDataMigrationToSqlVM -ResourceGroupName "MyResourceGroup" -SqlVirtualMachineName "MyVM" -TargetDbName "MyDb" -Kind "SqlVm" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachine/MyVM" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -StorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -StorageAccountKey "aaaaaccccoooouuunnntttkkkeeeyy" -FileSharePath "\\filesharepath.com\SharedBackup\MyBackUps" -FileShareUsername "filesharepath\User" -FileSharePassword $filesharePassword -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "LabServer.database.net" -SourceSqlConnectionUserName "User" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "AdventureWorks"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlvm
#>
function New-AzDataMigrationToSqlVM {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1
index dd0bda8c2005..7be04c0eefec 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -23,12 +23,12 @@ Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.
Get-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceauthkey
#>
function Get-AzDataMigrationSqlServiceAuthKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -205,12 +205,12 @@ $item = Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric -ResourceGroupName
$item.Node[0]
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceintegrationruntimemetric
#>
function Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -384,12 +384,12 @@ Retrieve the List of database migrations attached to the service.
Get-AzDataMigrationSqlServiceMigration -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservicemigration
#>
function Get-AzDataMigrationSqlServiceMigration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -569,7 +569,7 @@ Get-AzDataMigrationSqlService
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -591,7 +591,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservice
#>
function Get-AzDataMigrationSqlService {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -784,7 +784,7 @@ $dbMigration.MigrationStatusDetailMigrationState
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -806,7 +806,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqldb
#>
function Get-AzDataMigrationToSqlDb {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1013,7 +1013,7 @@ $miMigration.MigrationStatusDetail
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1035,7 +1035,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlmanagedinstance
#>
function Get-AzDataMigrationToSqlManagedInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1242,7 +1242,7 @@ $vmMigration.MigrationStatusDetail
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1264,7 +1264,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlvm
#>
function Get-AzDataMigrationToSqlVM {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1867,6 +1867,257 @@ end {
}
}
+<#
+.Synopsis
+Retry on going migration for the database.
+.Description
+Retry on going migration for the database.
+.Example
+Invoke-AzDataMigrationRetryToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName sqldb -MigrationOperationId migOpId
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ManagedInstanceName ]:
+ [MigrationName ]: Name of the migration.
+ [MigrationServiceName ]: Name of the Migration Service.
+ [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ [SqlDbInstanceName ]:
+ [SqlMigrationServiceName ]: Name of the SQL Migration Service.
+ [SqlVirtualMachineName ]:
+ [SubscriptionId ]: Subscription ID that identifies an Azure subscription.
+ [TargetDbName ]: The name of the target database.
+ [TargetResourceName ]: The name of the target resource/account.
+
+MIGRATIONOPERATIONINPUT : Migration Operation Input
+ MigrationOperationId : ID tracking migration operation.
+.Link
+https://learn.microsoft.com/powershell/module/az.datamigration/invoke-azdatamigrationretrytosqldb
+#>
+function Invoke-AzDataMigrationRetryToSqlDb {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='RetryExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Retry', Mandatory)]
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # Name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Retry', Mandatory)]
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # .
+ ${SqlDbInstanceName},
+
+ [Parameter(ParameterSetName='Retry')]
+ [Parameter(ParameterSetName='RetryExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Subscription ID that identifies an Azure subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Retry', Mandatory)]
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # The name of the target database.
+ ${TargetDbName},
+
+ [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Retry', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput]
+ # Migration Operation Input
+ # To construct, see NOTES section for MIGRATIONOPERATIONINPUT properties and create a hash table.
+ ${MigrationOperationInput},
+
+ [Parameter(ParameterSetName='RetryExpanded', Mandatory)]
+ [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')]
+ [System.String]
+ # ID tracking migration operation.
+ ${MigrationOperationId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Retry = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_Retry';
+ RetryExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryExpanded';
+ RetryViaIdentity = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentity';
+ RetryViaIdentityExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded';
+ }
+ if (('Retry', 'RetryExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
<#
.Synopsis
Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.
@@ -1876,12 +2127,12 @@ Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.
New-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -KeyName AuthKey2
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserviceauthkey
#>
function New-AzDataMigrationSqlServiceAuthKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys])]
[CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2073,12 +2324,12 @@ Create or Update Database Migration Service.
New-AzDataMigrationSqlService -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -Location "eastus2"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlservice
#>
function New-AzDataMigrationSqlService {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2288,12 +2539,12 @@ $targetPassword = ConvertTo-SecureString -String $password -AsPlainText -Force
New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" -TableList "table_1"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqldb
#>
function New-AzDataMigrationToSqlDb {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2598,12 +2849,12 @@ $filesharePassword = ConvertTo-SecureString -String $password -AsPlainText -Forc
New-AzDataMigrationToSqlVM -ResourceGroupName "MyResourceGroup" -SqlVirtualMachineName "MyVM" -TargetDbName "MyDb" -Kind "SqlVm" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachine/MyVM" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -StorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -StorageAccountKey "aaaaaccccoooouuunnntttkkkeeeyy" -FileSharePath "\\filesharepath.com\SharedBackup\MyBackUps" -FileShareUsername "filesharepath\User" -FileSharePassword $filesharePassword -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "LabServer.database.net" -SourceSqlConnectionUserName "User" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "AdventureWorks"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlvm
#>
function New-AzDataMigrationToSqlVM {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2927,7 +3178,7 @@ Remove-AzDataMigrationSqlServiceNode -ResourceGroupName "MyResourceGroup" -SqlMi
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2949,7 +3200,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationsqlservicenode
#>
function Remove-AzDataMigrationSqlServiceNode {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode])]
[CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
@@ -3586,6 +3837,472 @@ end {
}
}
+<#
+.Synopsis
+Delete Database Migration resource.
+.Description
+Delete Database Migration resource.
+.Example
+Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB
+.Example
+Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB -Force
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ManagedInstanceName ]:
+ [MigrationName ]: Name of the migration.
+ [MigrationServiceName ]: Name of the Migration Service.
+ [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ [SqlDbInstanceName ]:
+ [SqlMigrationServiceName ]: Name of the SQL Migration Service.
+ [SqlVirtualMachineName ]:
+ [SubscriptionId ]: Subscription ID that identifies an Azure subscription.
+ [TargetDbName ]: The name of the target database.
+ [TargetResourceName ]: The name of the target resource/account.
+.Link
+https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlmanagedinstance
+#>
+function Remove-AzDataMigrationToSqlManagedInstance {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # .
+ ${ManagedInstanceName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # Name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Subscription ID that identifies an Azure subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # The name of the target database.
+ ${TargetDbName},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Optional force delete boolean.
+ # If this is provided as true, migration will be deleted even if active.
+ ${Force},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_Delete';
+ DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Delete Database Migration resource.
+.Description
+Delete Database Migration resource.
+.Example
+Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB
+.Example
+Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB -Force
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ManagedInstanceName ]:
+ [MigrationName ]: Name of the migration.
+ [MigrationServiceName ]: Name of the Migration Service.
+ [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ [SqlDbInstanceName ]:
+ [SqlMigrationServiceName ]: Name of the SQL Migration Service.
+ [SqlVirtualMachineName ]:
+ [SubscriptionId ]: Subscription ID that identifies an Azure subscription.
+ [TargetDbName ]: The name of the target database.
+ [TargetResourceName ]: The name of the target resource/account.
+.Link
+https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlvm
+#>
+function Remove-AzDataMigrationToSqlVM {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # Name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # .
+ ${SqlVirtualMachineName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Subscription ID that identifies an Azure subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # The name of the target database.
+ ${TargetDbName},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Optional force delete boolean.
+ # If this is provided as true, migration will be deleted even if active.
+ ${Force},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_Delete';
+ DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
<#
.Synopsis
Stop in-progress database migration to SQL Db.
@@ -4216,7 +4933,7 @@ Update-AzDataMigrationSqlService -InputObject $mySqlMS -Tag @{Tag="Service"}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -4238,7 +4955,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/update-azdatamigrationsqlservice
#>
function Update-AzDataMigrationSqlService {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -4271,7 +4988,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags]))]
[System.Collections.Hashtable]
# Dictionary of
${Tag},
@@ -5402,12 +6119,12 @@ New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -Ma
New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -ManagedInstanceName "MyManagedInstance" -TargetDbName "MyDb" -Kind "SqlMI" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyRG/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -AzureBlobStorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -AzureBlobContainerName "container" -AzureBlobAccountKey "accountKey"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi
.Link
https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlmanagedinstance
#>
function New-AzDataMigrationToSqlManagedInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1
index af9594bf5f2e..f03a96ec0434 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1
@@ -25,7 +25,7 @@ Remove-AzDataMigrationSqlServiceNode -ResourceGroupName "MyResourceGroup" -SqlMi
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationsqlservicenode
#>
function Remove-AzDataMigrationSqlServiceNode {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode])]
[CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlManagedInstance.ps1
new file mode 100644
index 000000000000..32a72accf071
--- /dev/null
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlManagedInstance.ps1
@@ -0,0 +1,248 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Delete Database Migration resource.
+.Description
+Delete Database Migration resource.
+.Example
+Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB
+.Example
+Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB -Force
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ManagedInstanceName ]:
+ [MigrationName ]: Name of the migration.
+ [MigrationServiceName ]: Name of the Migration Service.
+ [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ [SqlDbInstanceName ]:
+ [SqlMigrationServiceName ]: Name of the SQL Migration Service.
+ [SqlVirtualMachineName ]:
+ [SubscriptionId ]: Subscription ID that identifies an Azure subscription.
+ [TargetDbName ]: The name of the target database.
+ [TargetResourceName ]: The name of the target resource/account.
+.Link
+https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlmanagedinstance
+#>
+function Remove-AzDataMigrationToSqlManagedInstance {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # .
+ ${ManagedInstanceName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # Name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Subscription ID that identifies an Azure subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # The name of the target database.
+ ${TargetDbName},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Optional force delete boolean.
+ # If this is provided as true, migration will be deleted even if active.
+ ${Force},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_Delete';
+ DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlVM.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlVM.ps1
new file mode 100644
index 000000000000..5f0ca0642a3d
--- /dev/null
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlVM.ps1
@@ -0,0 +1,248 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Delete Database Migration resource.
+.Description
+Delete Database Migration resource.
+.Example
+Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB
+.Example
+Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB -Force
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ManagedInstanceName ]:
+ [MigrationName ]: Name of the migration.
+ [MigrationServiceName ]: Name of the Migration Service.
+ [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ [SqlDbInstanceName ]:
+ [SqlMigrationServiceName ]: Name of the SQL Migration Service.
+ [SqlVirtualMachineName ]:
+ [SubscriptionId ]: Subscription ID that identifies an Azure subscription.
+ [TargetDbName ]: The name of the target database.
+ [TargetResourceName ]: The name of the target resource/account.
+.Link
+https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlvm
+#>
+function Remove-AzDataMigrationToSqlVM {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # Name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # .
+ ${SqlVirtualMachineName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Subscription ID that identifies an Azure subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [System.String]
+ # The name of the target database.
+ ${TargetDbName},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Optional force delete boolean.
+ # If this is provided as true, migration will be deleted even if active.
+ ${Force},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_Delete';
+ DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1
index 933cf857b409..d031dbd2ed9a 100644
--- a/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1
+++ b/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1
@@ -28,7 +28,7 @@ Update-AzDataMigrationSqlService -InputObject $mySqlMS -Tag @{Tag="Service"}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService
+Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datamigration/update-azdatamigrationsqlservice
#>
function Update-AzDataMigrationSqlService {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -83,7 +83,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags]))]
[System.Collections.Hashtable]
# Dictionary of
${Tag},
diff --git a/generated/DataMigration/DataMigration.Autorest/generate-info.json b/generated/DataMigration/DataMigration.Autorest/generate-info.json
index ebcf7b26accf..7aae451013a1 100644
--- a/generated/DataMigration/DataMigration.Autorest/generate-info.json
+++ b/generated/DataMigration/DataMigration.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "3d863b05-0047-489c-b7f2-6b7dfd14dd0a"
+ "generate_Id": "1c9b194d-7d03-41ae-8728-8bace933d453"
}
diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs
index b2a1a874a563..1d6aba56f16a 100644
--- a/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs
+++ b/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs
@@ -30,9 +30,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -78,9 +78,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -140,7 +140,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -257,7 +257,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -292,7 +292,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -324,7 +324,7 @@ public partial class DataMigration
///
public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoDelete(string resourceGroupName, string targetResourceName, string migrationName, bool? force, string subscriptionId, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -370,7 +370,7 @@ public partial class DataMigration
///
public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -608,9 +608,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -654,9 +654,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -696,9 +696,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -752,7 +752,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -770,7 +770,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -824,9 +824,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -882,7 +882,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -900,7 +900,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -962,9 +962,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1010,9 +1010,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1072,7 +1072,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1189,7 +1189,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -1224,7 +1224,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -1256,7 +1256,7 @@ public partial class DataMigration
///
public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoDelete(string resourceGroupName, string targetResourceName, string migrationName, bool? force, string subscriptionId, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1302,7 +1302,7 @@ public partial class DataMigration
///
public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1540,9 +1540,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1586,9 +1586,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1628,9 +1628,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1684,7 +1684,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1702,7 +1702,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -1756,9 +1756,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1814,7 +1814,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1832,7 +1832,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -1894,9 +1894,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1943,9 +1943,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2157,7 +2157,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -2189,9 +2189,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2241,9 +2241,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2303,7 +2303,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -2420,7 +2420,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -2455,7 +2455,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -2486,7 +2486,7 @@ public partial class DataMigration
///
public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbDelete(string resourceGroupName, string sqlDbInstanceName, string targetDbName, bool? force, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2533,7 +2533,7 @@ public partial class DataMigration
///
public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2777,9 +2777,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2827,9 +2827,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2887,7 +2887,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -2905,7 +2905,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -2955,14 +2955,13 @@ public partial class DataMigration
}
}
- /// Stop in-progress database migration to SQL Managed Instance.
+ /// Retry on going migration for the database.
/// Name of the resource group that contains the resource. You can obtain this value from
/// the Azure Resource Manager API or the portal.
- ///
+ ///
/// The name of the target database.
/// Subscription ID that identifies an Azure subscription.
- /// Required migration operation ID for which cancel will be initiated.
- /// a delegate that is called when the remote service returns 200 (OK).
+ /// Required migration operation ID for which retry will be initiated.
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -2970,9 +2969,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetry(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2982,11 +2981,11 @@ public partial class DataMigration
+ global::System.Uri.EscapeDataString(subscriptionId)
+ "/resourceGroups/"
+ global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.Sql/managedInstances/"
- + global::System.Uri.EscapeDataString(managedInstanceName)
+ + "/providers/Microsoft.Sql/servers/"
+ + global::System.Uri.EscapeDataString(sqlDbInstanceName)
+ "/providers/Microsoft.DataMigration/databaseMigrations/"
+ global::System.Uri.EscapeDataString(targetDbName)
- + "/cancel"
+ + "/retry"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -3004,14 +3003,13 @@ public partial class DataMigration
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender);
+ await this.DatabaseMigrationsSqlDbRetry_Call(request,onDefault,eventListener,sender);
}
}
- /// Stop in-progress database migration to SQL Managed Instance.
+ /// Retry on going migration for the database.
///
- /// Required migration operation ID for which cancel will be initiated.
- /// a delegate that is called when the remote service returns 200 (OK).
+ /// Required migration operation ID for which retry will be initiated.
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -3019,23 +3017,23 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetryViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cancel$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/servers/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/retry$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
if (!_match.Success)
{
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'");
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry'");
}
// replace URI parameters with values from identity
var resourceGroupName = _match.Groups["resourceGroupName"].Value;
- var managedInstanceName = _match.Groups["managedInstanceName"].Value;
+ var sqlDbInstanceName = _match.Groups["sqlDbInstanceName"].Value;
var targetDbName = _match.Groups["targetDbName"].Value;
var subscriptionId = _match.Groups["subscriptionId"].Value;
// construct URL
@@ -3044,11 +3042,11 @@ public partial class DataMigration
+ subscriptionId
+ "/resourceGroups/"
+ resourceGroupName
- + "/providers/Microsoft.Sql/managedInstances/"
- + managedInstanceName
+ + "/providers/Microsoft.Sql/servers/"
+ + sqlDbInstanceName
+ "/providers/Microsoft.DataMigration/databaseMigrations/"
+ targetDbName
- + "/cancel"
+ + "/retry"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -3066,13 +3064,12 @@ public partial class DataMigration
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender);
+ await this.DatabaseMigrationsSqlDbRetry_Call(request,onDefault,eventListener,sender);
}
}
- /// Actual wire call for method.
+ /// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
- /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -3080,7 +3077,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetry_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -3195,12 +3192,6 @@ public partial class DataMigration
switch ( _response.StatusCode )
{
- case global::System.Net.HttpStatusCode.OK:
- {
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response);
- break;
- }
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -3220,39 +3211,41 @@ public partial class DataMigration
}
///
- /// Validation method for method. Call this like the actual call, but you will
+ /// Validation method for method. Call this like the actual call, but you will
/// get validation events back.
///
/// Name of the resource group that contains the resource. You can obtain this value from
/// the Azure Resource Manager API or the portal.
- ///
+ ///
/// The name of the target database.
/// Subscription ID that identifies an Azure subscription.
- /// Required migration operation ID for which cancel will be initiated.
+ /// Required migration operation ID for which retry will be initiated.
/// an instance that will receive events.
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetry_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName);
- await eventListener.AssertNotNull(nameof(managedInstanceName),managedInstanceName);
+ await eventListener.AssertNotNull(nameof(sqlDbInstanceName),sqlDbInstanceName);
+ await eventListener.AssertRegEx(nameof(sqlDbInstanceName),sqlDbInstanceName,@"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$");
await eventListener.AssertNotNull(nameof(targetDbName),targetDbName);
+ await eventListener.AssertRegEx(nameof(targetDbName),targetDbName,@"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$");
await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId);
await eventListener.AssertNotNull(nameof(body), body);
await eventListener.AssertObjectIsValid(nameof(body), body);
}
}
- /// Create a new database migration to a given SQL Managed Instance.
+ /// Stop in-progress database migration to SQL Managed Instance.
/// Name of the resource group that contains the resource. You can obtain this value from
/// the Azure Resource Manager API or the portal.
///
/// The name of the target database.
/// Subscription ID that identifies an Azure subscription.
- /// Details of SqlMigrationService resource.
+ /// Required migration operation ID for which cancel will be initiated.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -3261,9 +3254,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3277,6 +3270,7 @@ public partial class DataMigration
+ global::System.Uri.EscapeDataString(managedInstanceName)
+ "/providers/Microsoft.DataMigration/databaseMigrations/"
+ global::System.Uri.EscapeDataString(targetDbName)
+ + "/cancel"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -3285,7 +3279,7 @@ public partial class DataMigration
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url);
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url);
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -3294,13 +3288,13 @@ public partial class DataMigration
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender);
}
}
- /// Create a new database migration to a given SQL Managed Instance.
+ /// Stop in-progress database migration to SQL Managed Instance.
///
- /// Details of SqlMigrationService resource.
+ /// Required migration operation ID for which cancel will be initiated.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -3309,18 +3303,18 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cancel$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
if (!_match.Success)
{
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'");
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'");
}
// replace URI parameters with values from identity
@@ -3338,6 +3332,7 @@ public partial class DataMigration
+ managedInstanceName
+ "/providers/Microsoft.DataMigration/databaseMigrations/"
+ targetDbName
+ + "/cancel"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -3346,7 +3341,7 @@ public partial class DataMigration
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url);
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url);
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -3355,13 +3350,11 @@ public partial class DataMigration
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender);
}
}
- ///
- /// Actual wire call for method.
- ///
+ /// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
@@ -3371,7 +3364,7 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -3385,6 +3378,7 @@ public partial class DataMigration
// this operation supports x-ms-long-running-operation
var _originalUri = request.RequestUri.AbsoluteUri;
// declared final-state-via: default
+ var _finalUri = _response.GetFirstHeader(@"Location");
var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation");
var location = _response.GetFirstHeader(@"Location");
while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted )
@@ -3467,10 +3461,10 @@ public partial class DataMigration
continue;
}
// we are done polling, do a request on final target?
- if (!string.IsNullOrWhiteSpace(_originalUri))
+ if (!string.IsNullOrWhiteSpace(_finalUri))
{
// create a new request with the final uri
- request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get);
+ request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get);
// drop the old response
_response?.Dispose();
@@ -3488,7 +3482,7 @@ public partial class DataMigration
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response);
break;
}
default:
@@ -3510,20 +3504,20 @@ public partial class DataMigration
}
///
- /// Validation method for method. Call this like the actual call, but
- /// you will get validation events back.
+ /// Validation method for method. Call this like the actual call, but you will
+ /// get validation events back.
///
/// Name of the resource group that contains the resource. You can obtain this value from
/// the Azure Resource Manager API or the portal.
///
/// The name of the target database.
/// Subscription ID that identifies an Azure subscription.
- /// Details of SqlMigrationService resource.
+ /// Required migration operation ID for which cancel will be initiated.
/// an instance that will receive events.
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -3536,15 +3530,13 @@ public partial class DataMigration
}
}
- ///
- /// Initiate cutover for in-progress online database migration to SQL Managed Instance.
- ///
+ /// Create a new database migration to a given SQL Managed Instance.
/// Name of the resource group that contains the resource. You can obtain this value from
/// the Azure Resource Manager API or the portal.
///
/// The name of the target database.
/// Subscription ID that identifies an Azure subscription.
- /// Required migration operation ID for which cutover will be initiated.
+ /// Details of SqlMigrationService resource.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -3553,9 +3545,9 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-03-15-preview";
+ var apiVersion = @"2025-06-30";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3569,7 +3561,6 @@ public partial class DataMigration
+ global::System.Uri.EscapeDataString(managedInstanceName)
+ "/providers/Microsoft.DataMigration/databaseMigrations/"
+ global::System.Uri.EscapeDataString(targetDbName)
- + "/cutover"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -3578,7 +3569,7 @@ public partial class DataMigration
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url);
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url);
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -3587,15 +3578,13 @@ public partial class DataMigration
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DatabaseMigrationsSqlMiCutover_Call(request,onOk,onDefault,eventListener,sender);
+ await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
}
}
- ///
- /// Initiate cutover for in-progress online database migration to SQL Managed Instance.
- ///
+ /// Create a new database migration to a given SQL Managed Instance.
///
- /// Required migration operation ID for which cutover will be initiated.
+ /// Details of SqlMigrationService resource.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -3604,18 +3593,18 @@ public partial class DataMigration
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi body, global::System.Func