From bbf10f1962c4ab831a3e7295ff18f9b4a14ac270 Mon Sep 17 00:00:00 2001 From: rchildress87 <13559499+rchildress87@users.noreply.github.com> Date: Tue, 8 Jul 2025 09:40:32 -0400 Subject: [PATCH 1/2] Added required module version to temporary zip folder path so that the DSC extension will only overwrite the version of the extension provided in the DSC zip archive instead of all versions in the module's directory on the Azure VM. --- .../Extension/DSC/DscExtensionPublishCmdletCommonBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compute/Compute/Extension/DSC/DscExtensionPublishCmdletCommonBase.cs b/src/Compute/Compute/Extension/DSC/DscExtensionPublishCmdletCommonBase.cs index 8575b616558e..4d4573801558 100644 --- a/src/Compute/Compute/Extension/DSC/DscExtensionPublishCmdletCommonBase.cs +++ b/src/Compute/Compute/Extension/DSC/DscExtensionPublishCmdletCommonBase.cs @@ -269,7 +269,7 @@ private List CopyRequiredModules(String configurationPath, String tempZi } $moduleFolder = Split-Path $module.Path - Copy-Item -Recurse -Path $moduleFolder -Destination ""$tempZipFolder\$($module.Name)"" + Copy-Item -Recurse -Path $moduleFolder -Destination ""$tempZipFolder\$($module.Name)\$($module.Version)"" }" ); powershell.Invoke(); From 748f65ddf5ca9b1a065a5917c54c8bf7f123092c Mon Sep 17 00:00:00 2001 From: rchildress87 <13559499+rchildress87@users.noreply.github.com> Date: Tue, 8 Jul 2025 10:03:22 -0400 Subject: [PATCH 2/2] Added description of change to module changelog. --- src/Compute/Compute/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index f19554dd35d9..93180f881c8c 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -20,6 +20,7 @@ --> ## Upcoming Release +* Fixed DSC configuration archive required module paths in `Publish-AzVMDscConfiguration` cmdlet to include module version. ## Version 10.1.0 * Support for Metadata Security Protocol (MSP) support for Gallery