---
title: "Use Cases for the Deployment with Cloud Template"
canonical: "https://docs.infoblox.com/space/ipamvmware8x/399671586/Use%20Cases%20for%20the%20Deployment%20with%20Cloud%20Template"
format: markdown
---
This topic has sample scripts that you can refer to for creating VMware Aria Automation cloud template deployments. You can define the code on the **Code** tab of a cloud template or a deployment. For more information, see *[Creating a Deployment in VMware Aria Automation Assembler](https://infoblox-docs.atlassian.net/wiki/spaces/ipamvmware8x/pages/399474826)*.

> ⚠️ **Note**  
> ⚠️ The property values in the listed samples are configured with hardcoded values for ease of understanding. Infoblox recommends that you configure the `inputs: {}` attribute using the property groups in the cloud template (**Code** tab). Refer to the example in *[Creating a Deployment in VMware Aria Automation Assembler](https://infoblox-docs.atlassian.net/wiki/spaces/ipamvmware8x/pages/399474826)*.

Code samples are included for the following use cases:

> Macro (toc)

# External Network Profile with the Network Type - Existing

VMware Aria Automation Provider for NIOS DDI integrated with VMware Aria Automation supports only external network profiles created with existing networks.

## Provisioning a VM with the Registration of a Host Record in NIOS

`formatVersion: 1`  
`inputs: {}`  
`resources:`  
`  Cloud_Network_1:`  
`    type: Cloud.Network`  
`    properties:`  
`      constraints:`  
`        - tag: infoblox`  
`      networkType: existing`

`  Cloud_Machine_1:`  
`    type: Cloud.Machine`  
`    properties:`  
`      NetworkProfileType: EXTERNAL`  
`      Infoblox.IPAM.createHostRecord: true`  
`      Infoblox.IPAM.Network0.enableDns: true`  
`      Infoblox.IPAM.Network0.enableDhcp: true`  
`      Infoblox.IPAM.restartIfNeeded: true`  
`      Infoblox.IPAM.Network0.dnsView: view1`  
`      Infoblox.IPAM.Network0.Domain: infobloxdemo.com`  
`      image: CentOS`  
`      flavor: small`  
`      name: 'test-vm-1'`  
`      constraints:`  
`        - tag: infoblox`

`      networks:`  
`        - network: ${resource.Cloud_Network_1.id}`  
`          assignment: static`

## Provisioning a VM with the Registration of a Fixed Address, A, PTR, and CNAME Records in NIOS

`formatVersion: 1`  
`inputs: {}`  
`resources:`  
`  Cloud_Network_1:`  
`    type: Cloud.Network`  
`    properties:`  
`      constraints:`  
`        - tag: infoblox`  
`      networkType: existing`  
`  Cloud_Machine_1:`  
`    type: Cloud.Machine`  
`    properties:`  
`      NetworkProfileType: EXTERNAL`  
`      Infoblox.IPAM.createFixedAddress: true`  
`      Infoblox.IPAM.createAddressAndPtrRecords: true`  
`      Infoblox.IPAM.Network0.aliases: 'www.infobloxdemo.com, blog.infobloxdemo.com'`  
`      Infoblox.IPAM.Network0.dnsView: view1`  
`      Infoblox.IPAM.Network0.Domain: infobloxdemo.com`  
`      Infoblox.IPAM.Network0.comment: 'created by VMware Aria Automation'`  
`      image: CentOS`  
`      flavor: small`  
`      name: test-vm-2`  
`      constraints:`  
`        - tag: infoblox`  
`      networks:`  
`        - network: ${resource.Cloud_Network_1.id}`  
`          assignment: static`

## Provisioning a VM Using a Customization Specification

You can utilize the VM customization specification to set up DNS servers and DNS search paths in VMs. However, these configurations may be replaced if the identical properties are specified in the network DHCP options in NIOS.  
To apply a customization specification to the provisioned VM, use the customizationSpec cloud machine property within the template:  
`formatVersion: 1`  
`resources:`  
`  Cloud_Network_1:`  
`    type: Cloud.Network`  
`    properties:`  
`      constraints:`  
`        - tag: infoblox`  
`      networkType: existing`  
`  Cloud_Machine_1:`  
`    type: Cloud.Machine`  
`    properties:`  
`      NetworkProfileType: 'EXTERNAL'`  
`      customizationSpec: Linux`  
`      Infoblox.IPAM.createFixedAddress: true`  
`      Infoblox.IPAM.createAddressRecord: true`  
`      Infoblox.IPAM.Network0.Domain: infobloxdemo.com`  
`      Infoblox.IPAM.Network0.dnsView: view1`  
`      image: CentOS`  
`      flavor: small`  
`      name: test-vm-3`  
`      constraints:`  
`        - tag: infoblox`  
`      networks:`  
`        - network: ${resource.Cloud_Network_1.id}`  
`          assignment: static`

# NSX Network Profile

VMware Aria Automation Provider for NIOS DDI integrated with VMware Aria Automation and NSX supports NSX network profiles with network types existing, public, private, outbound, and routed. You can set the network type in the `networkType` property.

## Provisioning a VM with the Registration of a Host Record in NIOS Using an NSX Profile

`formatVersion: 1`  
`inputs:`  
`  networkProfileType:`  
`    type: string`  
`    title: networkProfileType`  
`    enum:`  
`      - NSX`  
`  Allocate:`  
`    type: object`  
`    title: Allocate`  
`    $ref: /ref/property-groups/Allocate`  
`resources:`  
`  Cloud_NSX_Network_1:`  
`    type: Cloud.NSX.Network`  
`    properties:`  
`      networkType: private`  
`      constraints:`  
`        - tag: nsx-private`  
`  Cloud_Machine_1:`  
`    type: Cloud.Machine`  
`    properties:`  
`      NetworkProfileType: ${input.networkProfileType}`  
`      Infoblox.IPAM.createHostRecord: true`  
`      Infoblox.IPAM.Network0.enableDns: true`  
`      Infoblox.IPAM.Network0.enableDhcp: true`  
`      Infoblox.IPAM.restartIfNeeded: true`  
`      Infoblox.IPAM.Network0.Domain: infobloxdemo.com`  
`      image: ubuntu`  
`      flavor: small`  
`      networks:`  
`        - network: ${resource.Cloud_NSX_Network_1.id}`  
`          assignment: static`  
`          assignPublicIpAddress: false`  
`          domain: infobloxdemo.com`  
`      storage:`  
`        constraints:`  
`          - tag: infoblox`  
`      autoScaleConfiguration:`  
`        minSize: 1`  
`        metricScaleRules: []`  
`        scheduledScaleRules: []`  
`        maxSize: 1`  
`        policy: Fixed`  
`      constraints:`  
`        - tag: infoblox`  
`      attachedDisks: []`

## Provisioning a VM with the Registration of a Fixed Address, A, PTR, and CNAME Records Using NSX Network Profile

`formatVersion: 1`  
`inputs: {}`  
`resources:`  
`  Cloud_Network_1:`  
`    type: Cloud.Network`  
`    properties:`  
`      constraints:`  
`        - tag: infoblox`  
`      networkType: existing`  
`  Cloud_Machine_1:`  
`    type: Cloud.Machine`  
`    properties:`  
`      NetworkProfileType: EXTERNAL`  
`      Infoblox.IPAM.createFixedAddress: true`  
`      Infoblox.IPAM.createAddressAndPtrRecords: true`  
`      Infoblox.IPAM.Network0.aliases: 'www.infobloxdemo.com, blog.infobloxdemo.com'`  
`      Infoblox.IPAM.Network0.dnsView: view1`  
`      Infoblox.IPAM.Network0.Domain: infobloxdemo.com`  
`      Infoblox.IPAM.Network0.comment: 'created by VMware Aria Automation'`  
`      image: CentOS`  
`      flavor: small`  
`      name: test-vm-2`  
`      constraints:`  
`        - tag: infoblox`  
`      networks:`  
`        - network: ${resource.Cloud_Network_1.id}`  
`          assignment: static`