powershell - Azure DSC Configuration from Runbooks -


i have following workflow script runbook on azure automation account:

workflow configure-vm {     $dscconfigpath = "c:\dscconfigs\testconfiguration"     inlinescript     {         import-module psdesiredstateconfiguration         configuration testconfiguration         {             node "ak-testvm-001" {                 windowsfeature iis {                     ensure = "present"                     name = "web-server"                 }             }         }          write-output "info: creating dsc configuration"         testconfiguration -nodename "ak-testvm-001" -outputpath $using:dscconfigpath          write-output "info: deploying dsc configuration"         start-dscconfiguration -path $using:dscconfigpath -force -wait -verbose         write-output "info: dsc configuration finished"          write-output "info: end of runbook"     } } 

i following error when run runbook:

import-module: specified module 'psdesiredstateconfiguration' not loaded because not found in module directory.

how can run dsc configuration azure runbooks? possible or absolutely need use windows powershell?

powershell desired state configuration support added azure automation in limited preview in may. can read more on how manage dsc nodes using azure automation here.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -