The EDB Postgres Ark image is available on the Microsoft Azure Marketplace. To create an Ark virtual machine, log in to the Microsoft Azure management console, and click the green plus sign in the upper-left hand corner to navigate to the Azure Marketplace.When the Azure Marketplace opens, enter EDB Postgres Ark in the search box. Select the EDB Postgres Ark (published by EnterpriseDB Corp.) icon from the search results, and click Create to continue.The Azure console will open to a dialog that allows you to configure the virtual machine that will host your console deployment. Please note that your virtual machine requirements may vary from the description that follows; the description is intended to provide guidelines about the minimum requirements for a console host for an Ark deployment. Please consult the Azure documentation for detailed information about additional configuration options for your virtual environment.Use fields on the Basics panel (see Figure 3.54) to provide general information about the new virtual machine:
• If applicable, use the Subscription drop-down listbox to select the name of an Azure subscription.
• Use the Resource group drop-down listbox to select the resource group in which the VM will be created.
• Provide a name for the VM in the Virtual Machine Name field.
• If applicable, use the Region drop-down listbox to select the region in which the VM will reside.
• Use the Image drop-down listbox to select the image that will be used for the VM.
• Use the Change size link (in the Size field) to open the Select a VM size panel (see Figure 3.55) and select the machine configuration.Highlight a configuration type, and click the Select button (in the lower-left corner of the panel) to continue.
• Select the radio button next to the Authentication type you wish to use for the Administrator account; we highly recommend using SSH authentication.
• Provide an operating system user name in the User name field; the default operating system user name for Ark images is centos.
• If you have elected to enable SSH public key authentication, provide the key in the SSH public key field.Use fields on the Networking panel to specify your network configuration preferences. When configuring an Azure virtual machine to use the Ark console, you should:
• Select the Advanced radio button in the Network security group field.
• Use the Network security group drop-down listbox to select the security group that you wish to use for the virtual machine.Use fields on the Guest config panel to provide an extension that sets the Ark console deployment password. Create a file on your local system named startup-password.sh that contains the following text:#!/bin/sh
rm -f /usr/share/tomcat/startup-password.txt
echo "console_password" > /usr/share/tomcat/startup-password.txt
chown tomcat:tomcat /usr/share/tomcat/startup-password.txt
chmod 600 /usr/share/tomcat/startup-password.txtWhere console_password is replaced with the password you will provide when prompted for a password by the Ark setup dialog.To provide the location of the script to the virtual machine, click the Select an Extension to install link, then Custom Script for Linux. Then, click the Create button; use the fields on the Install extention panel (see Figure 3.56) to identify the script:
• Use Script files browser to locate and upload the script file.
• Enter the command that will invoke your script in the Command field; for example, sh startup-password.sh.Click OK to continue and return to the Settings panel; when you've finished updating the settings with your preferences, click OK to continue. Then, click the Review + Create button to validate your virtual machine definition (Figure 3.57).Azure will confirm that your machine definition is valid; then, you can click the Create button to create your virtual machine.You can monitor the virtual machine's deployment from the Azure Operations page, the Resource group activity log, or the Virtual machine Overview page.While the deployment finishes, you can register your application in the Azure Active Directory. You will need the Public IP address or DNS name of your server for the registration. To copy the IP address, click the copy icon to the right of the Public IP address on the VM details panel (see Figure 3.58).After copying the public IP address of your server, select App registrations from the Azure Active Directory page. Click the New application registration button located on the App registrations detail panel (see Figure 3.59).Use fields on the Create panel (see Figure 3.60) to provide information about your application:
• Click Create to register your application.After creating the virtual machine and registering the application, you must adjust the required permissions, allowing the Windows Azure Service Management API to connect to your application. This will give the Ark server permission to control Azure services via the Service Management API.Please note that you must be an Azure Global Administrator to grant permissions required by Ark. Click the Settings icon, and then navigate to the Required permissions page for the application, and select +Add.Click Select an API, and then highlight Windows Azure Service Management API (see Figure 3.62).Click Select permissions, and then Access Azure Service Management (see Figure 3.63); then, click Select.Then, click Grant Permissions (see Figure 3.64).When prompted, click Yes to confirm that you wish to grant access permissions (see Figure 3.65).Repeat the process, adding permissions for Microsoft Graph. When adding permissions for Microsoft Graph, select a scope of Read all users' full profiles.When you're finished granting permissions, the Required permissions list (see Figure 3.66) should include: