Azure Data Studio - Azure SQL Migration extension thinks the Managed Instance is still in 'Creating' state.

Vlasopoulos V 10 Reputation points
2023-02-28T11:28:45.1133333+00:00

In step 3 of the Azure SQL Migration where the user chooses the managed instance:

Error:

The managed instance 'managedinstance' is unavailable for migration because it is currently in the 'Creating' state. To continue, select an available managed instance.

User's image

But this managed instance's state has been "ready" for about 4-5 hours.

User's image

Do I need to wait even more time for the Azure SQL Migration extension of Azure Data Studio to see that the state is not 'Creating' anymore? Is there any action needed from me?

Azure Database Migration service
Azure SQL Database
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
538 questions
Azure Data Studio
Azure Data Studio
A cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux.
118 questions
{count} vote

4 answers

Sort by: Most helpful
  1. ROHTASHV GEHLLOT 10 Reputation points
    2024-09-11T20:29:01.65+00:00

    I had the same issue. I did a "Stop" and "Start" on the Managed Instance, tried the connection again in Azure Data Studio and it worked.

    But I agree with Ronald Duenez Orti that it should pick up the state automatically.

    2 people found this answer helpful.
    0 comments No comments

  2. ShaktiSingh-MSFT 15,421 Reputation points
    2023-03-30T06:06:17.07+00:00

    Hi Rune Moberg,

    Welcome to Microsoft Q&A forum and thanks for using Azure Services.

    As I understand, you are getting same error as Azure SQL Managed Instance unavailable in Azure Data Studio.

    Make sure you have installed the official release of the Azure SQL Managed Instance extension. Follow the steps in the Azure Data Studio documentation. In the Extensions pane, search for "Managed Instance", and install it there. After it's installed, you'll get notified automatically about any future extension updates.

    With the extension installed, you'll see a Managed Instance tab in Azure Data Studio. Here you can find information specific for your managed instance.

    Reference: https://learn.microsoft.com/en-us/sql/azure-data-studio/extensions/azure-sql-managed-instance-extension?view=sql-server-ver16

    Hope this helps. If not:

    Could you please tell what type of migration you are performing?

    At what step error comes up? Screenshot would help.

    Thank you.

    1 person found this answer helpful.

  3. ShaktiSingh-MSFT 15,421 Reputation points
    2023-02-28T11:59:22.3633333+00:00

    Hi @Vlasopoulos V ,

    Welcome to Microsoft Q&A forum and thanks for using Azure services.

    Regarding the issue which you have in Azure Data Studio - Azure SQL Migration extension thinks the Managed Instance is still in 'Creating' state.

    Could you please try to close and re-open Azure Data Studio and give it a try if this helps.

    If not, please let us know if you performing Online or Offline migration?

    Also, I would request you to go through the Known Issues in Azure SQL Managed Instance limitations:

    Migrating to Azure SQL Managed Instance by using the Azure SQL extension for Azure Data Studio has the following limitations:

    • If migrating a single database, the database backups must be placed in a flat-file structure inside a database folder (including the container root folder), and the folders can't be nested, as it's not supported.
    • If migrating multiple databases using the same Azure Blob Storage container, you must place backup files for different databases in separate folders inside the container.
    • Overwriting existing databases using DMS in your target Azure SQL Managed Instance isn't supported.
    • Configuring high availability and disaster recovery on your target to match source topology isn't supported by DMS.
    • The following server objects aren't supported:
      • SQL Server Agent jobs
      • Credentials
      • SSIS packages
      • Server audit
    • You can't use an existing self-hosted integration runtime created from Azure Data Factory for database migrations with DMS. Initially, the self-hosted integration runtime should be created using the Azure SQL migration extension in Azure Data Studio and can be reused for further database migrations.
    • A single LRS job (created by DMS) can run for a maximum of 30 days. When this period expires, the job is automatically canceled thus your target database gets automatically deleted.

    Please ensure these are checked.

    Hope this should help. If not, please share inputs so that we may further assist.


  4. Ronald Duenez Ortiz 0 Reputation points
    2024-07-23T21:33:54.5266667+00:00

    This also happens for "Stopped" instances, when they come back Online they are not detected properly.

    This Extension is very bad at autodetecting states. Sometimes it shows resource groups mixed when managing multiple subscriptions.

    Auto-populated values are incorrectly swapped across subscriptions, resource groups, managed instances, storage accounts, containers and folders.

    I strongly suggest:

    1. FIX this, or
    2. Provide an option to correctly repopulate or refresh the values (sometimes it works when going back and forth between steps, changing targets, etc.), or
    3. Allow to bypass this configuration UI validations and perform the actual connection at the end

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.