Create cloud initialization templates and a script to use during VM
provisioning.
Vorbereitungen
Role required: cloud_admin
Prozedur
-
In the Cloud Admin Portal, navigate to .
-
Click New, enter the name and content of the script, and
then click Submit.
Create as many script templates as needed.
-
In the Cloud Admin Portal, navigate to .
-
Click New.
-
Enter a descriptive name and create script that uses the template name in the
following line of code (scriptName is the name of the
template):
templateResolver.getTemplate(scriptName);
-
Click Submit.
Nächste Maßnahme
To run a script at the time a virtual resource is
provisioned, map the script to an OS profile. To run a post-provisioning script, create
a blueprint and specify the script in the Execute Script operation. See Example: Post-provision cloud script for an example.