Verified that the install script works with explicit and implicit versions.
Verified the update script works for an explicit version downgrade for a whole resource group.
Verified that a regular update works when going from explicit version to implicit latest version for a whole resource group.
Verified that remove is not called unless a non-matching version of the extension is present.
Of note: The downgrade takes a substantially longer time, as we need to wait for all the files to be fully removed.
PS C:\management-scripts\extension> .\update-all-site-extensions.ps1 -SubscriptionId $subscriptionId -ResourceGroup apm-azure-app-services -ExtensionVersion 1.4.0
[dd-aas-netcore31-baseline] Requesting installed extensions.
[dd-aas-netcore31-baseline] Datadog.AzureAppServices.DotNet not found.
[dd-aas-netcore21-baseline] Requesting installed extensions.
[dd-aas-netcore21-baseline] Datadog.AzureAppServices.DotNet not found.
[dd-aas-netcore31-latest] Requesting installed extensions.
[dd-aas-netcore31-latest] Ready to modify Datadog.AzureAppServices.DotNet.
[dd-aas-netcore31-latest] Stopping webapp
[dd-aas-netcore31-latest] Attempting to install version 1.4.0 of Datadog.AzureAppServices.DotNet
[dd-aas-netcore31-latest] Setting package URL to https://globalcdn.nuget.org/packages/datadog.azureappservices.dotnet.1.4.0.nupkg
True
[dd-aas-netcore31-latest] Requested package removal.
[dd-aas-netcore31-latest] Waiting ten seconds to ensure removal is complete.
id : Datadog.AzureAppServices.DotNet
title : .NET Datadog APM
description : Application monitoring for .NET by Datadog.
version : 1.4.0
icon_url : https://www.nuget.org/Content/Images/packageDefaultIcon-50x50.png
license_url : https://licenses.nuget.org/Apache-2.0
authors : {Datadog}
local_path : C:\home\SiteExtensions\Datadog.AzureAppServices.DotNet
installed_date_time : 2021-08-27T13:38:09+00:00
provisioningState : Succeeded
packageUri : https://globalcdn.nuget.org/packages/datadog.azureappservices.dotnet.1.4.0.nupkg
[dd-aas-netcore31-latest] Completed request to install version 1.4.0 of Datadog.AzureAppServices.DotNet
[dd-aas-netcore31-latest] Starting webapp
[dd-aas-net5-development] Requesting installed extensions.
[dd-aas-net5-development] Datadog.AzureAppServices.DotNet not found.
[dd-aas-net48-appinsight] Requesting installed extensions.
[dd-aas-net48-appinsight] Ready to modify Datadog.AzureAppServices.DotNet.
[dd-aas-net48-appinsight] Stopping webapp
[dd-aas-net48-appinsight] Attempting to install version 1.4.0 of Datadog.AzureAppServices.DotNet
[dd-aas-net48-appinsight] Setting package URL to https://globalcdn.nuget.org/packages/datadog.azureappservices.dotnet.1.4.0.nupkg
True
[dd-aas-net48-appinsight] Requested package removal.
[dd-aas-net48-appinsight] Waiting ten seconds to ensure removal is complete.
id : Datadog.AzureAppServices.DotNet
title : .NET Datadog APM
description : Application monitoring for .NET by Datadog.
version : 1.4.0
icon_url : https://www.nuget.org/Content/Images/packageDefaultIcon-50x50.png
license_url : https://licenses.nuget.org/Apache-2.0
authors : {Datadog}
installer_command_line_params :
local_path : C:\home\SiteExtensions\Datadog.AzureAppServices.DotNet
installed_date_time : 2021-08-27T13:38:44+00:00
provisioningState : Succeeded
packageUri : https://globalcdn.nuget.org/packages/datadog.azureappservices.dotnet.1.4.0.nupkg
[dd-aas-net48-appinsight] Completed request to install version 1.4.0 of Datadog.AzureAppServices.DotNet
[dd-aas-net48-appinsight] Starting webapp
[dd-aas-net48-appinsight-x64] Requesting installed extensions.
[dd-aas-net48-appinsight-x64] Datadog.AzureAppServices.DotNet not found.
[dd-aas-netcore31-development-x64] Requesting installed extensions.
[dd-aas-netcore31-development-x64] Datadog.AzureAppServices.DotNet not found.
[dd-aas-net48-baseline] Requesting installed extensions.
[dd-aas-net48-baseline] Datadog.AzureAppServices.DotNet not found.
[dd-aas-demo-netcore31] Requesting installed extensions.
[dd-aas-demo-netcore31] Ready to modify Datadog.AzureAppServices.DotNet.
[dd-aas-demo-netcore31] Stopping webapp
[dd-aas-demo-netcore31] Attempting to install version 1.4.0 of Datadog.AzureAppServices.DotNet
[dd-aas-demo-netcore31] Setting package URL to https://globalcdn.nuget.org/packages/datadog.azureappservices.dotnet.1.4.0.nupkg
True
[dd-aas-demo-netcore31] Requested package removal.
[dd-aas-demo-netcore31] Waiting ten seconds to ensure removal is complete.
id : Datadog.AzureAppServices.DotNet
title : .NET Datadog APM
description : Application monitoring for .NET by Datadog.
version : 1.4.0
icon_url : https://www.nuget.org/Content/Images/packageDefaultIcon-50x50.png
license_url : https://licenses.nuget.org/Apache-2.0
authors : {Datadog}
local_path : C:\home\SiteExtensions\Datadog.AzureAppServices.DotNet
installed_date_time : 2021-08-27T13:39:33+00:00
provisioningState : Succeeded
packageUri : https://globalcdn.nuget.org/packages/datadog.azureappservices.dotnet.1.4.0.nupkg
[dd-aas-demo-netcore31] Completed request to install version 1.4.0 of Datadog.AzureAppServices.DotNet
[dd-aas-demo-netcore31] Starting webapp
[dd-aas-net48-development] Requesting installed extensions.
[dd-aas-net48-development] Datadog.AzureAppServices.DotNet not found.
[dd-aas-net5-baseline] Requesting installed extensions.
[dd-aas-net5-baseline] Datadog.AzureAppServices.DotNet not found.
Verified that the install script works with explicit and implicit versions. Verified the update script works for an explicit version downgrade for a whole resource group. Verified that a regular update works when going from explicit version to implicit latest version for a whole resource group. Verified that remove is not called unless a non-matching version of the extension is present.
Of note: The downgrade takes a substantially longer time, as we need to wait for all the files to be fully removed.