Error installing SqlIaasExtension during VM deployment

TATYANA GRIBNIKOVA 20 Reputation points
2024-11-13T14:19:01.2866667+00:00

N-th attempt to create and deploy an Azure SQL VM fails with the status "conflict" in operations details and the following details:

{
    "status": "Failed",
    "error": {
        "code": "Ext_VMExtensionProvisioningError",
        "message": "There was an error while installing SqlIaasExtension on the virtual machine. Please completely uninstall and reinstall the extension."
    }
}

And I can't even find neither SqlIaasExtension nor any extensions in my resources. A beginner here, need an advice!

SQL Server on Azure Virtual Machines
{count} votes

Accepted answer
  1. Mahesh Kurva 1,470 Reputation points Microsoft Vendor
    2024-11-13T21:01:03.6766667+00:00

    Hi @TATYANA GRIBNIKOVA,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    It seems that there was an error while installing the SqlIaasExtension on your virtual machine. The error message suggests that you should completely uninstall and reinstall the extension.

    Here are some steps you can take to resolve this:

    1.Check Existing Extensions on the VM:

    If you can’t see any extensions in the Azure portal, the extension might not have installed correctly or could be stuck in a bad state. Here’s how to check:

    • Go to the Azure Portal:
    • Navigate to Virtual Machines.
    • Select the VM where you're trying to install the SQL IaaS extension.
    • In the left-hand pane, under Settings, select Extensions + applications.

    If you don't see any extensions listed there, it's possible that the extension didn't install properly.

    2.Uninstall and Reinstall the Extension:

    Since the error message suggests uninstalling and reinstalling the extension, you can try this using Azure CLI or PowerShell.

    Azure CLI:

    az vm extension delete --resource-group <your-resource-group> --vm-name <your-vm-name> --name SqlIaasExtension
    
    az vm extension set --resource-group <your-resource-group> --vm-name <your-vm-name> --name SqlIaasExtension --publisher Microsoft.SqlServer.Management
    

    PowerShell:

    Remove-AzVMExtension -ResourceGroupName <your-resource-group> -VMName <your-vm-name> -Name SqlIaasExtension
    
    Set-AzVMExtension -ResourceGroupName <your-resource-group> -VMName <your-vm-name> -Name SqlIaasExtension -Publisher Microsoft.SqlServer.Management -TypeHandlerVersion 1.2
    

    3.Check VM Compatibility:

    Ensure the VM supports SQL Server IaaS extensions.

    Use a VM size that works for SQL Server.

    Make sure the OS matches the SQL Server version you're using.

    4.Check Network and Resource Group:

    Verify the VM’s network settings (no firewall issues).

    Confirm the resource group and location are correct.

    5.Redeploy the VM:

    If the issue persists, try redeploying the VM. This can sometimes resolve intermittent issues.

    For more information, please refer the documents:

    https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/features-linux?tabs=azure-cli#run-vm-extensions

    https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/sql-agent-extension-troubleshoot-known-issues?view=azuresql

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machine-scale-sets/extensions/vm-extension-provisioning-errors

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.