| author | MikeRayMSFT | |
|---|---|---|
| ms.author | mikeray | |
| ms.reviewer | randolphwest | |
| ms.date | 12/10/2025 | |
| ms.topic | include | |
| ms.custom |
|
To determine the version of the current extension release, review the release notes.
To check the version of your extension, use the following PowerShell command:
azcmagent versionTo simplify extension upgrades, be sure to enable automatic updates. You can also manually upgrade the extension by using the Azure portal, PowerShell and the Azure CLI.
To upgrade the extension in the Azure portal, follow these steps:
-
In the Azure portal, go to Machines - Azure Arc.
-
Select the name of the machine where SQL Server is installed to open the Overview pane for your server.
-
Under Settings, select Extensions.
-
Check the box for the
WindowsAgent.SqlServerextension and then select Update from the navigation menu.:::image type="content" source="media/manage-extension/update-extension.png" alt-text="Screenshot of the Extension pane for the Machine - Azure Arc pane in the Azure portal, with update highlighted.":::
-
Select Yes on the Update extension confirmation dialog box to complete the upgrade.
To upgrade the extension by using PowerShell, first install the Az.ConnectedMachine module with the following command (if you haven't already):
Install-Module -Name Az.ConnectedMachineThen, use the following command to upgrade the extension:
# Variables
$Subscription_Id = "<SubscriptionId>"
$ResourceGroup = "<ResourceGroup>"
$MachineName = "<MachineName>"
$ExtensionName = "WindowsAgent.SqlServer"
$Publisher = "Microsoft.AzureData"
$TargetVersion = "<LatestVersion>" # Example: 1.1.3211.337
# Upgrade the extension
Set-AzContext -Subscription $SubscriptionId
$params = @{
ResourceGroupName = $ResourceGroup
MachineName = $MachineName
Name = $ExtensionName
Publisher = $Publisher
Type = $ExtensionName
TypeHandlerVersion = $TargetVersion
}
Update-AzConnectedMachineExtension @paramsTo upgrade the extension by using the Azure CLI, first install the connectedmachine extension with the following command (if you haven't already):
az extension add --name connectedmachine
Then, use the following command to upgrade the extension:
# Variables
Subscription_Id="<SubscriptionId>"
Resource_Group="<ResourceGroup>"
Machine_Name="<ArcEnabledServerName>"
Extension_Name="WindowsAgent.SqlServer"
Publisher="Microsoft.AzureData"
Target_Version="<LatestVersion>" # Example: 1.1.3211.337
# Upgrade the extension
az account set --subscription $Subscription_Id
az connectedmachine extension update \
--resource-group $Resource_Group \
--machine-name $Machine_Name \
--name $Extension_Name \
--publisher $Publisher \
--type $Extension_Name \
--type-handler-version $Target_Version
For more information about upgrading the Azure extension for SQL Server, see Upgrade extension.