We're about to migrate a few databases to Azure SQL Databases.
Steps taken:
- created an azure migrate resource in our subscription (running with a private endpoint in one of our vnets, accessible over a vpn tunnel)
- updated the dma.exe.config, enabling EnableAssessmentUploadToAzureMigrate
- ran an assessment on an onprem database
- clicked "Upload to Azure Migrate"
- selected the subscription and azure migrate project
- hit upload
After a few seconds I'm presented with an error, saying "The attempt to upload assessment report to Azure Migrate Hub failed.
Operation is blocked for the solution 'Databases-Assessment-DataMigrationAssistant'."
Attaching the dma.log file. The DmaError.log file is empty, but there's a couple of exception in the dma.log file, namely:
Dma.exe Information: 0 : Uploading assessment to Azure Migrate failed: AssessmentId = '1245466c-cf54-4e04-aee4-6f2e60ea189d', ErrorType = 'Microsoft.Rest.Azure.CloudException', ErrorMessage = 'Operation is blocked for the solution 'Databases-Assessment-DataMigrationAssistant'.'.
Dma.exe Information: 0 : 'Exception type: Microsoft.Rest.Azure.CloudException
Message:
Operation is blocked for the solution 'Databases-Assessment-DataMigrationAssistant'.
AdditionalMessage:
GetConfigRequestBlockedForSolution - Operation is blocked for the solution 'Databases-Assessment-DataMigrationAssistant'.
HResult : 0x80131500
FacilityCode : 19 (013)
ErrorCode : 5376 (1500)
Stack:
at Microsoft.Azure.AmhClient.SolutionsOperations.<GetConfigWithHttpMessagesAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.AmhClient.SolutionsOperationsExtensions.<GetConfigAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SqlServer.Fundamentals.OperationsInfrastructure.AzureMigrateHub.AzureMigrateHubManagement.<UploadAssessmentToAzureMigrateHubAsync>d__c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.SqlServer.Fundamentals.OperationsInfrastructure.AzureMigrateHub.Helpers.UploadHelper.<UploadAssessmentToAzureMigrateAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SqlServer.Advisor.UX.Actions.Assessments.UploadToAmhAction.<ExecuteAsync>d__2.MoveNext()
'
Dma.exe Information: 0 : The step 'Completed' in activity '1245466c-cf54-4e04-aee4-6f2e60ea189d' reported an error but the activity was possibly already completed or was not started
Dma.exe Information: 0 : Unhandled exception reported, ErrorId '715213242723233220', ExceptionName 'CloudException', Error '0x80131500', StackFrame 'Microsoft.Azure.AmhClient.SolutionsOperations.<GetConfigWithHttpMessagesAsync>d__10.MoveNext', WatsonData 'BadRequest@GetConfigRequestBlockedForSolution', OuterExceptionName 'FailedToUploadAssessmentReportToAzureMigrateHub', OuterErrorCode '0x858E000A', OuterCallSite '.', OuterWatsonData 'NotSpecified'
Dma.exe Information: 0 : 'Exception type: Microsoft.SqlServer.Advisor.Workflows.Contracts.FailedToUploadAssessmentReportToAzureMigrateHub
Message:
The attempt to upload assessment report to Azure Migrate Hub failed.
HResult : 0x858E000A
FacilityCode : 1422 (58e)
ErrorCode : 10 (000a)
Data:
UploadActivityId = ErrorsLinkedToAssessmentUploadBinding_1245466c-cf54-4e04-aee4-6f2e60ea189d
DpesErrorReportedId = 715213242723233220
Inner exception type: Microsoft.Rest.Azure.CloudException
Message:
Operation is blocked for the solution 'Databases-Assessment-DataMigrationAssistant'.
AdditionalMessage:
GetConfigRequestBlockedForSolution - Operation is blocked for the solution 'Databases-Assessment-DataMigrationAssistant'.
HResult : 0x80131500
FacilityCode : 19 (013)
ErrorCode : 5376 (1500)
Stack:
at Microsoft.Azure.AmhClient.SolutionsOperations.<GetConfigWithHttpMessagesAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.AmhClient.SolutionsOperationsExtensions.<GetConfigAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SqlServer.Fundamentals.OperationsInfrastructure.AzureMigrateHub.AzureMigrateHubManagement.<UploadAssessmentToAzureMigrateHubAsync>d__c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.SqlServer.Fundamentals.OperationsInfrastructure.AzureMigrateHub.Helpers.UploadHelper.<UploadAssessmentToAzureMigrateAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SqlServer.Advisor.UX.Actions.Assessments.UploadToAmhAction.<ExecuteAsync>d__2.MoveNext()
'
Dma.exe Information: 0 : The step 'Completed' in activity '1245466c-cf54-4e04-aee4-6f2e60ea189d' failed with an unhandled exception with name 'FailedToUploadAssessmentReportToAzureMigrateHub'
Running v5.4.5184.4 of the Data Migration Assistant.
I couldn't find any documentation on what ports are required for this to work, so if this could be the case, please advice which ports needs to be opened for this to work.
134996-dma.log