Create cloud initialization script templates and a script

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 13일
  • 소요 시간: 1분
  • Create cloud initialization templates and a script to use during VM provisioning.

    시작하기 전에

    Role required: cloud_admin

    프로시저

    1. In the Cloud Admin Portal, navigate to Design > Cloud Scripts > Cloud Script Templates.
    2. Click New, enter the name and content of the script, and then click Submit.

      Create as many script templates as needed.

    3. In the Cloud Admin Portal, navigate to Design > Cloud Scripts.
    4. Click New.
    5. 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);
      주:
      For more information, see Cloud scripts and cloud script templates.
    6. Click Submit.

    다음에 수행할 작업

    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.