Skip to content

Adds logic to Publish-AzVMDscConfiguration cmdlet to copy resource module to temporary directory including its version #28154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private List<string> 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();
Expand Down
Loading