Configuring the Azure provider instance

Configure the Azure provider instance to provide account information and to define templates that map your cluster's resource demands to Azure VMs.

Procedure

Follow these steps to configure the Azure configuration files, which can be found on the management host on which the HostFactory service runs at $HF_CONFDIR/providers/azureinst/conf/.

  1. Update the azureinstprov_config.json file to provide account information that enables your cluster to connect to Azure. For more information, see the azureprov_config.json reference.
  2. Update the azureinstprov_templates.json file to define host templates that specify, among others, the type of VM that must be provisioning and the maximum number of cloud VMs. For more information, see the azureprov_templates.json reference.
    Note: For each custom image that you created and want to use, ensure that a corresponding record exists in the host templates file. Ensure that you delete all sample entries.

What to do next

  1. Ensure that Azure is enabled as the cloud provider for your cluster:
    1. In the hostProviderPlugins.json file, make sure that Azure is enabled in the enabled parameter. See hostProviders.json reference .
    2. In the hostProviders.json file, make sure that azureinst is enabled in the enabled parameter. See hostProviders.json reference.
    3. In the hostRequestors.json file, specify azureinst as a provider instance for the cwsinst requestor instance in the providers parameter. See hostRequestors.json reference.
  2. Configure the cwsinst requestor instance. See Registering a dynamic requestor which uses the cwsinst provider instance.