...
Once you set up a credential store, you can provision your Virtual Machines (VMs) and create Blueprints for these resources:
...
Microsoft Azure
...
Note |
---|
Before you begin
|
To provision a Microsoft Azure VM using blueprints, follow these steps:
Create a Resource Group
...
Before you provision a Microsoft Azure Virtual Machine (VM), you’ll need to create a Resource Group. Skip this step if you’ve already created a Resource Group. To create a Resource Group for Microsoft Azure, follow these steps:
Login to your HyperCloud™ Platform (HCP) account.
Click Service Orchestration and navigate to Services > Resource Group > New.
Select your Resource Pool.
Enter a Name for your Resource Group.
Click Create Resource Group.
Provision your Microsoft Azure VM
...
Once you create a Resource Group, you can create a Microsoft Azure Virtual Machine (VM) using blueprints.
...
Notes
[1] Azure resource pools are identified by their regions.
Example: RP.ARM.SouthEastAsia.<ResourcePoolName>[2] If you uncheck the Skip Agent Install option, the HCP portal will install the HyperCloud Agent right after provisioning a VM.
You’ll need to uncheck this option if you want to run plugins after provisioning a VM.
[3] Once the lease period expires, your VM will be automatically deleted, and you will receive an email notification for the same.
[4] If you want to run multiple plugins on a VM, you can select the order in which they run and exit.
Select a Plugin from the Plugins drop-down.
Click + Advanced Configurations.
Enter the Valid Exit Codes for your Plugin.
Enter the Plugin execution order.
Click + Advanced Configurations to collapse the configuration menu.
To add another Plugin:
Select your plugin from the Plugins drop-down list.
Configure Advance Configurations as you did in step 2.
Once you’ve added and configured all the Plugins, click Review.
Create additional volumes using Blueprints
...
Once you provision a VM, you can create additional volumes using the YAML editor. You can access the YAML editor by editing a Blueprint. To create additional volumes using Blueprints:
...
Code Block |
---|
Machine:
region: westus
group: hg-ub16
image:
instanceType: Basic_A3
resourceGroup: hg-vm-rg
network: hg-vm-vnet1
subnet: hg-vm-vnet1-subnet1
securityGroup: hg-vm-nsg
skipAgentInstall: false
assignFloatingIP: true
publicIPSku: basic
password:2c9180866a79b909016ba03eca9b308c
count:1
terminationProtection:DISABLED
vols:!vol*
prefix:hg-ub16-dd1
size:10
Count 1 |
Amazon Web Services EC2 Instance
...
You can provision Amazon Web Services (AWS) EC2 instances using a HyperCloudTM (HCP) Blueprint. Follow these steps to create an AWS EC2 instance Blueprint:
Login to your HCP portal account.
Click Services Orchestration and navigate to Services > New.
Select your AWS Resource Pool from the drop-down list.[1]
Select your instance Sizeandclick Next.
Select your Image and click Next.
Select the Subnet for the instance and click Next.
Select the Security Group.
Select your Key-Pair from the Add Credentials page and click Next.
Choose the entitled users from the Entitle Virtual Machine Owner page and click Next.
Enter these details in the Advanced page dialog:
Enter a Prefix for your VM and click Review.
Example: *hg-prod-vms*You may configure these optional settings:
Enter the Lease term in minutes, hours, and days. [2]
Select a Plugin to run once your VM is provisioned. [3]
Select Define a VM Start and Stop Schedule to run your VM at scheduled timings. You can set the start time and duration to daily, weekly, or monthly.
Click Review.
Once you click Review, you’ll see the summary of your VM deployment.
You can deploy multiple VMs with the same configuration.
Click + next to How Many VMs, to add VMs.
Click - next to How Many VMs, to remove VMs.
You can click:
Create to create your VM or,
Click Save Blueprint Only to create a blueprint.
If you choose to save the blueprint, you’ll be able to access it via Service Orchestration > App Store.
Click open the blueprint you created and click Edit.
Enter the following details in the </>Machine Compose Blueprint dialog:
Enter a Name for your Blueprint.
You can Entitle Users to your Blueprint in one of the following ways:
Select Everyone to provide access to all users.
Select Groups & Users to provide access to specific users.
Enter the first three alphabets of the username in the Users drop-down and select the username.
Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.
Click Save Changes.
To deploy a VM using the Blueprint:
Click open your Blueprint.
Click on Create Machine.
You’ll be redirected to Service Orchestration > VM.
Notes
[1] AWS resource pools are identified by their prefixes.
Example: RP.AWS.ap-southeast-1.<ResourcePoolName>[2] Once the lease period expires, your VM will be automatically deleted, and you will receive an email notification for the same.
[3] If you want to run multiple plugins on a VM, you can select the order in which they run and exit.
Select a Plugin from the Plugins drop-down.
Click + Advanced Configurations.
Enter the Valid Exit Codes for your Plugin.
Enter the Plugin execution order.
Click + Advanced Configurations to collapse the configuration menu.
To add another Plugin:
Select your plugin from the Plugins drop-down list.
Configure Advance Configurations as you did in step 2.
Once you’ve added and configured all the Plugins, click Review.
VMware vSphere VM
...
You can provision a VMware VSphere Virtual Machine (VM) using Blueprints. Follow these steps to create a VMware vSphere VM Blueprint:
Login to your HyperCloud™ Platform (HCP) account.
Click Service Orchestration and navigate to Services > VMs > New.
Enter these details in the Create A New VM dialog:
Select your Resource Pool from the drop-down list.
Select the VM Size from the drop-down list and click Next.
Select your Image from the drop-down list and click Next.
Select the Subnet and click Next.
Select one of these options from the Customization page:
Using Cloud Image: we recommend that you select this field. [1]
Using SSH via Login Credentials. [2]
Skip Agent Install. [3]
Click Next.
Choose the entitled users from the Entitle Virtual Machine Owner page and click Next.
Enter these details in the Advanced page dialog:
Enter a Prefix for your VM and click Review.
Example: *hg-prod-vms*You may configure these optional settings:
Enter the Lease term in minutes, hours, and days. [4]
Select a Plugin to run once your VM is provisioned. [5]
Select Define a VM Start and Stop Schedule to run your VM at scheduled timings. You can set the start time and duration to daily, weekly, or monthly.
Click Review.
Once you click Review, you’ll see the summary of your VM deployment.
You can deploy multiple VMs with the same configuration.
Click + next to How Many VMs, to add VMs.
Click - next to How Many VMs, to remove VMs.
You can click:
Create to create your VM or,
Click Save Blueprint Only to create a blueprint.
If you choose to save the blueprint, you’ll be able to access it via Service Orchestration > App Store.
Click open the blueprint you created and click Edit.
Enter the following details in the </>Machine Compose Blueprint dialog:
Enter a Name for your Blueprint.
You can Entitle Users to your Blueprint in one of the following ways:
Select Everyone to provide access to all users.
Select Groups & Users to provide access to specific users.
Enter the first three alphabets of the username in the Users drop-down and select the username.
Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.
Click Save Changes.
To deploy a VM using the Blueprint:
Click open your Blueprint.
Click on Create Machine.
You’ll be redirected to Service Orchestration > VM.
Notes
[1] Selecting Using Cloud Image lets you install and configure a VMware Template using
cloud-init
.[2] Selecting Using SSH via Login Credentials lets you install the HyperCloud Agent via SSH for a Linux VM.
[3] Our HyperGrid support team can help you setup Guest Customization.
Once the Guest Customization is enabled, you will be able to install the agent.
[4] Once the lease period expires, your VM will be automatically deleted, and you will receive an email notification for the same.
[5] If you want to run multiple plugins on a VM, you can select the order in which they run and exit.
Select a Plugin from the Plugins drop-down.
Click + Advanced Configurations.
Enter the Valid Exit Codes for your Plugin.
Enter the Plugin execution order.
Click + Advanced Configurations to collapse the configuration menu.
To add another Plugin:
Select your plugin from the Plugins drop-down list.
Configure Advance Configurations as you did in step 2.
Once you’ve added and configured all the Plugins, click Review.