New Question

Revision history [back]

click to hide/show revision 1
initial version

How to start PowerShell script as a part of cloudbase-init process?

I'm beating my head against the wall trying to figure this out. What needs to be done to conf files in order for a PowerShell script to be started as a part of the cloudbase-init process? Which modules and plugins need to be called, and what does the PS script need to look like? I tried to create a script in LocalScripts directory, put #ps1_sysnative at the top, added the localscriptsplugin to plugins called from the conf file, and cloudbase-init didn't even try to execute my script :-(

click to hide/show revision 2
merged revision

How to start PowerShell script as a part of cloudbase-init process?

I'm beating my head against the wall trying to figure this out. What needs to be done to conf files in order for a PowerShell script to be started as a part of the cloudbase-init process? Which modules and plugins need to be called, and what does the PS script need to look like? I tried to create a script in LocalScripts directory, put #ps1_sysnative at the top, added the localscriptsplugin to plugins called from the conf file, and cloudbase-init didn't even try to execute my script :-(

I'm beating my head against the wall trying to figure this out. What needs to be done to conf files in order for a PowerShell script to be started as a part of the cloudbase-init process? Which modules and plugins need to be called, and what does the PS script need to look like? I tried to create a script in LocalScripts directory, put #ps1_sysnative at the top, added the localscriptsplugin to plugins called from the conf file, and cloudbase-init didn't even try to execute my script :-(

click to hide/show revision 3
None

How to start PowerShell script as a part of cloudbase-init process?

I'm beating my head against the wall trying to figure this out. What needs to be done to conf files in order for a PowerShell script to be started as a part of the cloudbase-init process? Which modules and plugins need to be called, and what does the PS script need to look like? I tried to create a script in LocalScripts directory, put #ps1_sysnative at the top, added the localscriptsplugin to plugins called from the conf file, and cloudbase-init didn't even try to execute my script :-(

I'm beating my head against the wall trying to figure this out. What needs to be done to conf files in order for a PowerShell script to be started as a part of the cloudbase-init process? Which modules and plugins need to be called, and what does the PS script need to look like? I tried to create a script in LocalScripts directory, put #ps1_sysnative at the top, added the localscriptsplugin to plugins called from the conf file, and cloudbase-init didn't even try to execute my script :-(