Adding a database and a Storage Account File Share deployed in private DNS zones using the API (Technical Preview)

Learn about how to add a database and a Storage Account File Share deployed in private DNS zones using the API.

To learn about the CLI option and about the prerequisites:
To provision the database and the Storage Account File Share in private DNS zones, specify the full resource ID of the private DNS zones where you want to deploy them.
To define the Azure private DNS zone ID of the database and the Storage Account File Share, in config.properties of the cluster endpoint, post the full resource IDs in the following parameters respectively:
  • For the database, use azure.database.privateDNSZoneId
  • For the Storage Account, use azure.fileshare.privateDNSZoneId

Request example

Example for the base URL, which changes according to the region: https://console.us-west-1.cdp.cloudera.com

curl -H "Cookie: cdp-session-token=${CST}" '[***BASE-URL***]/dex/api/v1/cluster' \
-H "Content-Type: application/json" \
-H 'accept: application/json' \
-X POST -d '{
    "name": "[***NAME***]",
    "env": "[***ENVIRONMENT-NAME***]",
    "config": {
        "properties": {
            "loadbalancer.internal": "true",
            "dbus-wxm-client.enabled": "false",
            "kubernetes.api.allowList": "",
            "loadbalancer.allowList": "",
            "kubernetes.api.proxyCIDRList": "",
            "subnets": "",
            "loadBalancerSubnets": "",
            "default-vc.create": "true",
            "cde.deployPreviousVersion": "false",
            "privateNetwork.enabled": "true",
            "azure.fileshare.privateDNSZoneId": "[***AZURE-PRIVATEDNSZONE-RESOURCE-ID-FOR-STORAGE-ACCOUNT-FILE-SHARE***]",
            "azure.database.privateDNSZoneId": "[***AZURE-PRIVATEDNSZONE-RESOURCE-ID-FOR-DATABASE***]"
        },
        "resources": {
            "instance_type": "Standard_D8s_v4",
            "min_spot_instances": "0",
            "max_spot_instances": "0",
            "min_instances": "0",
            "max_instances": "50",
            "initial_instances": "0",
            "initial_spot_instances": "0",
            "root_vol_size": "100",
            "allp_instance_group_details": {
                "instance_type": "Standard_D8s_v4",
                "min_spot_instances": "0",
                "max_spot_instances": "0",
                "min_instances": "0",
                "max_instances": "50",
                "initial_instances": "0",
                "initial_spot_instances": "0",
                "root_vol_size": "100"
            }
        },
        "tags": {}
    },
    "skipValidation": false
}'