This what I did:
- Upload a custom DSC module to Azure Automation account. (1.0.0)
- Node uses module.
- Change the module version in the psd1 of the module. Upload the new version. (1.0.1)
- Node downloads newer version and uses it.
- Change the module version in the psd1 again. (1.0.2)
- Node is still reporting errors from module version 1.0.1
I have tried changing the major and minor version numbers in both the psd1 and the mof schema. I also tried deleting and redeploying the entire node! It is stuck on 1.0.1. Is there a cache in the Azure Automation pull server that could cause this?
Module version. Note the time it was uploaded:
Error reported from node. Notice the time reported and module version:
I guess your node's LCM has this setting "AllowModuleOverwrite" set to true :