After creating the configuration script and allocating any resources it requires, produce a compressed zip file containing the configuration and the resources :
Publish-AzureVMDSCConfigurtion DeployWebPage.ps1 - ConfigurationArchivePath DeployWebPage.ps1.zip
Publish-AzureVMDSCConfigurtion DeployWebPage.ps1 - ConfigurationArchivePath DeployWebPage.ps1.zip
When you build your configuration zip using Publish-AzureVMDSCConfiguration, it will not automatically include all the resources you specify, for example additional Windows PowerShell module dependencies or any files or folders that you intend to deploy. You must add those manually to the zip file before configuring the VM with the script.
No comments:
Post a Comment