According to documentation:
You can use a Sitecore module ZIP package or a Team Development for Sitecore .update package and convert it into an equivalent .scwdp.zip package that is compatible with MSDeploy by using the following PowerShell call:
ConvertTo-SCModuleWebDeployPackage [-Path] <string> [[-Destination] <string>]
The command comes from Sitecore Azure Toolkit that can be downloaded here.
I can confirm that this works for Sitecore zip packages
but never tried to convert .update
packages.
Here is the example usage:
$workingDirectory = $PSScriptRoot
$toolkitDirectory = "$workingDirectory\sat"
$modulesOutputDirectory = "$workingDirectory\modules"
$scPackagePath = "$workingDirectory\Redirect.Manager-0.5.zip"
$scWdpPackagePath = "$modulesOutputDirectory\Redirect.Manager-0.5.scwdp.zip"
Import-Module "$toolkitDirectory\Sitecore.Cloud.Cmdlets.psm1"
Import-Module "$toolkitDirectory\Sitecore.Cloud.Cmdlets.dll"
ConvertTo-SCModuleWebDeployPackage -Path $scPackagePath -Destination $modulesOutputDirectory
Generated scwdp package can be extended with additional files if needed:
Update-SCWebDeployPackage -SourcePath "$workingDirectory\add\redirects-manager" -Path $scWdpPackagePath
Or with custom parameters:
Update-SCWebDeployPackage -ParametersXmlPath "$workingDirectory\redirect.manager.parameters.xml" -Path $scWdpPackagePath