Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.rst

Nutanix Developer Portal Code Samples - create_vm_v3_basic.ps1

This readme file is specifically for the create_vm_v3_basic.ps1 PowerShell script.

The setup instructions are the same as all other PowerShell scripts in this repository. This file is provided as additional/supplemental information for this specific code sample.

Please see the main page for general instructions.

Script Usage

Once you have configured your system to run these scripts (see link above), the script can be run as follows.

  1. Edit create_vm_v3_basic.ps1 and edit the following link to match your Prism Central IP address.

    $parameters.cluster_ip = "10.0.0.1"
  2. Edit create_vm_v3_basic.ps1 and edit the following variable to suit your requirements:

    $parameters.vm_name = "BasicVMViaAPIv3"
  3. Execute the script:

    create_vm_v3_basic.ps1
  4. Verify the script ran successfully and that the batch API request returned HTTP code 202:

    script_output.png
  5. If you prefer, you can also check Prism Central to ensure your VM was created successfully.