Skip to main content
Multiple Instances

Deploy Multiple Instances of Droplet

Nick Smith avatar
Written by Nick Smith
Updated over 2 years ago

There are many scenarios where you need to deploy multiple instances of the same resource type multiple times. For example, this could be multiple Azure Virtual Desktop session hosts. You wouldn't want to draw 100 individual session hosts! Instead, you would want to draw one and let Cloud Maker do the rest. Enter the Multiple Instances container.

  1. To use the Multiple Instances container, find it under the Operations category in the droplet panel, or simply search for it using the droplet search capability.

  2. Once dragged and dropped onto your diagram. Add the droplets you wish to have multiple instances of. For example, using a Multiple Instance container for session hosts.

  3. Once placed, and the droplets you wish to create multiple instances of are positioned inside the multiple instances container, you can then configure the multiple instances container properties.

  4. With the multiple instances container selected, open the properties panel. You can then give the container a name and enter the number of instances you require.

  5. The multiple instances container will automatically use the default index for the name of the droplets being deployed inside the multiple instances container. For instance, 10 instances of a Session Host droplet called MySessionHost would result in the following names being generated:

    MySessionHost1, MySessionHost2, MysessionHost3 ... etc.

  6. In some cases, you may need to create a custom index where the property must start indexing from a different starting number. To do this, select the Custom Indexes node on the Multiple Instances properties.

  7. Then click Add new custom index and give it a name e.g. IpAddress

  8. Finally, set the custom index starting index number e.g. 10

  9. You can then use this custom index when configuring the properties of the droplet in the multiple instances container. For example to use the IPAddress custom index on the MySessionHost network configuration, navigate to:

    MySessionHost -> Network Profile -> Network Interfaces - Network Interface 1 -> Network Interface -> IP Configurations -> Config1

  10. Select the ellipses menu and click Use expression value.

  11. In the expression builder type: 10.0.0.

  12. Then in the search input, type IPAddress and select [Instance Container Name].Customer Indexes.[My Custom Index Name].Index


  13. Cloud Maker will then utilise the custom index for the IP address property of the Session Host. For example:

    10.0.0.10, 10.0.0.11, 10.0.0.12 ... etc

Support

If you need any support using Multiple Instances or have any questions, don't hesitate to reach out using the in-app chat or email us at [email protected]

Did this answer your question?