New Question

Revision history [back]

click to hide/show revision 1
initial version

how to provide a parameter to s powershell script in userdata

I tried to launch a windows stack using heat template. the userdata is powershell script created by myself . I tried: setupenv.ps1 -specificurl "http://...." setupenv.ps1 "http://....." but neither works my script is like: param([String]specificurl) (new-object System.Net.WebClient).DownloadFile($specificurl,"C:\temp")

Could you pls tell me how to pass the parameter to the script in userdata?

Thanks a lot