After uploading the converted, fixed-size VHD (virtual hard disk) vNIOS image to the Azure Stack Hub Blob storage, use it to create a managed image in Azure and then use the image to deploy a vNIOS for Azure Stack Hub instance as a VM.
Creating an Azure Managed Image
- Log in on your page of the Azure Stack Hub portal: https://adminportal.<regionname>.<FQDN>.
- Navigate to Dashboard > Images.
- On the Images page, select an existing image or click Add to add a new image.
- On the Create Image page, complete the following:
- In the Name field, type a name for the image.
- From the Subscription drop-down list, choose the Azure Stack Hub subscription on which you want to create the instance.
- From the Resource group drop-down list, choose the resource group to which the instance must belong.
- From the Location drop-down list, choose the location where the instance must reside.
- For OS disk, select Linux.
- In the Storage blob field, browse to and select the Azure Blob storage folder that contains the converted image as follows:
- Click Browse.
- From the list of Storage accounts, select the storage account, and then select the container to open its details page.
- On the container details page, click Upload.
- In the Upload blob panel, browse to and select the converted vNIOS image, and then click Upload.
- Click the uploaded image, and then click Select.
- Keep the Storage type as Standard HDD and Host caching as Read/write.
- Click Create.
The created image appears in the list of images on the Images page.
Creating and deploying a VM
- On the Images page of the Azure Stack Hub portal, click the newly created image to open its details page.
- On the details page, click Create VM.
- Open the Basics tab in the Create Virtual Machine window, and specify the following information:
- In the Project details section, verify that your subscription is selected in the Subscription drop-down list.
- From the Resource group drop-down list, choose the resource group you want to use to manage your resources.
- In the Instance details section, type a name for the VM in the Virtual machine name field.
- From the Image drop-down list, choose the image that you created.
- In the Size field, click Select size and choose the size of the VM according to the vNIOS appliance.
For the list of VM sizes, see Supported vNIOS for Azure Appliances. - In the Administrator account section, select the Authentication type as Password.
- In the username field, enter the user name that you use to access the VM.
- In the Password field, enter the password.
- In the Confirm password field, enter the password again to confirm it.
- In the Inbound port rules section, select which VMs are accessible from the public internet as follows; If required, you may set advanced rules on the Networking tab as explained later.
- Select Public inbound ports as Allowed selected ports.
- From the Select inbound ports drop-down list, choose the required ports: HTTP (80), HTTPS (443), and SSH (22).
- Click Next: Disks >.
- On the Disks tab, complete the following:
- In the Disk options section, verify that OS disk type is Standard HDD.
- In the Advanced section, verify that the value is Yes. This value is selected for Use managed disks by default, because creating a VM from a disk or an image requires managed disks.
- Click Next: Networking >.
- On the Networking tab, complete the following:
- Choose a Virtual network, the Subnet, and the Public IP address. This will configure the network settings of the Azure environment where you want to deploy the VM.
- In the Network Security Group field, use a network security group to limit public access to specific ports:
- None (not recommended): Selecting this option might expose all ports on the VM to the public internet.
- Basic: Select Basic > Allow selected ports, and then choose the required ports from the Select inbound ports drop-down list.
- Advanced: Select this option and choose an existing security group from the Configure network security drop-down list. Alternatively, click Create new to create a new security group.
- Click Next: Management >.
- On the Management tab, complete the following:
- Select On for Boot diagnostics.
- From the Diagnostics storage account drop-down list, select a storage account.
- Click Next: Advanced >.
- On the Advanced tab, in the Custom data field, configure a cloud-init script.
- On the Review + create tab, review the configured settings, and then click Create to start the deployment.