Azure Arc - Sql Server failing to install extension

Harish Kaushal 0 Reputation points Microsoft Employee
2023-07-24T23:45:48.7+00:00

I am trying to setup Server 2022 and on-board it to Azure Arc but getting below error.

Long running operation failed with status 'Failed'. Additional Info:'InstallExtension failed: ExtensionServiceOperation: Received NonSuccessStatus from Extension Service with StatusCode: Conflict and Error: Conflict'

[7/24/2023 11:21:51 PM UTC] [EXCEPTION]   [InstallerClient] One or more errors occurred. (Long running operation failed with status 'Failed'. Additional Info:'InstallExtension failed: ExtensionServiceOperation: Received NonSuccessStatus from Extension Service with StatusCode: Conflict and Error: Conflict')
[7/24/2023 11:21:51 PM UTC] [EXCEPTION]   [InstallerClient] Long running operation failed with status 'Failed'. Additional Info:'InstallExtension failed: ExtensionServiceOperation: Received NonSuccessStatus from Extension Service with StatusCode: Conflict and Error: Conflict'
   at Microsoft.Rest.ClientRuntime.Azure.LRO.AzureLRO`2.CheckForErrors()
   at Microsoft.Rest.ClientRuntime.Azure.LRO.PutLRO`2.CheckForErrors()
   at Microsoft.Rest.ClientRuntime.Azure.LRO.AzureLRO`2.StartPollingAsync()
   at Microsoft.Rest.ClientRuntime.Azure.LRO.AzureLRO`2.BeginLROAsync()
   at Microsoft.Rest.Azure.AzureClientExtensions.GetLongRunningOperationResultAsync[TBody,THeader](IAzureClient client, AzureOperationResponse`2 response, Dictionary`2 customHeaders, CancellationToken cancellationToken)
   at Microsoft.Rest.Azure.AzureClientExtensions.GetLongRunningOperationResultAsync[TBody](IAzureClient client, AzureOperationResponse`1 response, Dictionary`2 customHeaders, CancellationToken cancellationToken)
   at Microsoft.Rest.Azure.AzureClientExtensions.GetPutOrPatchOperationResultAsync[TBody](IAzureClient client, AzureOperationResponse`1 response, Dictionary`2 customHeaders, CancellationToken cancellationToken)
   at Microsoft.Azure.Management.HybridCompute.MachineExtensionsOperations.CreateOrUpdateWithHttpMessagesAsync(String resourceGroupName, String name, String extensionName, MachineExtension extensionParameters, Dictionary`2 customHeaders, CancellationToken cancellationToken)
   at Microsoft.Azure.Management.HybridCompute.MachineExtensionsOperationsExtensions.CreateOrUpdateAsync(IMachineExtensionsOperations operations, String resourceGroupName, String name, String extensionName, MachineExtension extensionParameters, CancellationToken cancellationToken)
[7/24/2023 11:21:51 PM UTC] [INFO]        [InstallerClient] Machine extension: WindowsAgent.SqlServer creation Creating
[7/24/2023 11:21:51 PM UTC] [ERROR]       [AzureExtensionForSQLServer] Failed to create Azure Extension for SQL Server.

PS C:\Windows\system32> C:\Users\Admin1-t0\Desktop\RegisterSqlServerArc.ps1
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code HKH3PA3W8 to authenticate.
Authentication successful.
Onboarding SQL Server to Azure Arc. It will take few minutes. Please see C:\Windows\system32\AzureExtensionForSQLServerInstallation.log file for more information.
Installing Azure Connected Machine Agent.
Installed Azure Connected Machine Agent.
Arc Server resource not found. Registering the current machine now.
Onboarded current machine to Azure.
Installing Azure Extension for SQL Server. This may take 5+ minutes.
Machine extension: WindowsAgent.SqlServer creation Creating
Failed to install Azure extension for SQL Server. Please see C:\Windows\system32\AzureExtensionForSQLServerInstallation.log file for more information.
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
282 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,171 Reputation points Microsoft Employee
    2023-07-25T00:30:59.9666667+00:00

    Hi Harish Kaushal,

    Thanks for using Microsoft Q&A!!

    It looks like the extension is not installed properly. As suggested in the Troubleshoot Azure extension for SQL Server document please check the below if you see the extension is not installed -

    1. Check event logs to see if anything preventing installation. Try installing SqlServerExtension.msi from the following folder C:\Packages\Plugins\Microsoft.AzureData.WindowsAgent.SqlServer{version}. The installation UI may provide the error details.
    2. Close services app, server manager and retry one of the connection methods to install the extension, and see if that helps.

    Please let me know if you still have any problems.

    Thanks

    Saurabh