|
| 1 | +--- |
| 2 | +page_title: "polaris_azure_cloud_cluster Resource - terraform-provider-polaris" |
| 3 | +subcategory: "" |
| 4 | +description: |- |
| 5 | + |
| 6 | +The `polaris_azure_cloud_cluster` resource creates an Azure cloud cluster using RSC. |
| 7 | + |
| 8 | +This resource creates a Rubrik Cloud Data Management (CDM) cluster with elastic storage |
| 9 | +in Azure using the specified configuration. The cluster will be deployed with the specified |
| 10 | +number of nodes, instance types, and network configuration. |
| 11 | + |
| 12 | +~> **Note:** This resource creates actual Azure infrastructure. Destroying the |
| 13 | + resource will attempt to clean up the created resources, but manual cleanup |
| 14 | + may be required. |
| 15 | + |
| 16 | +~> **Note:** The Azure subscription must be onboarded to RSC with the Server and Apps |
| 17 | + feature enabled before creating a cloud cluster. |
| 18 | + |
| 19 | +~> **Note:** Cloud Cluster Removal is not supported via terraform yet. The cluster |
| 20 | + will be removed from state and you must remove the cluster through the RSC UI. |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +# polaris_azure_cloud_cluster (Resource) |
| 25 | + |
| 26 | + |
| 27 | +The `polaris_azure_cloud_cluster` resource creates an Azure cloud cluster using RSC. |
| 28 | + |
| 29 | +This resource creates a Rubrik Cloud Data Management (CDM) cluster with elastic storage |
| 30 | +in Azure using the specified configuration. The cluster will be deployed with the specified |
| 31 | +number of nodes, instance types, and network configuration. |
| 32 | + |
| 33 | +~> **Note:** This resource creates actual Azure infrastructure. Destroying the |
| 34 | + resource will attempt to clean up the created resources, but manual cleanup |
| 35 | + may be required. |
| 36 | + |
| 37 | +~> **Note:** The Azure subscription must be onboarded to RSC with the Server and Apps |
| 38 | + feature enabled before creating a cloud cluster. |
| 39 | + |
| 40 | +~> **Note:** Cloud Cluster Removal is not supported via terraform yet. The cluster |
| 41 | + will be removed from state and you must remove the cluster through the RSC UI. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +## Example Usage |
| 46 | + |
| 47 | +```terraform |
| 48 | +# Create an Azure cloud cluster using RSC |
| 49 | +resource "polaris_azure_cloud_cluster" "example" { |
| 50 | + cloud_account_id = "12345678-1234-1234-1234-123456789012" |
| 51 | +
|
| 52 | + cluster_config { |
| 53 | + cluster_name = "my-cloud-cluster" |
| 54 | + |
| 55 | + admin_password = "RubrikGoForward!" |
| 56 | + dns_name_servers = ["8.8.8.8", "8.8.4.4"] |
| 57 | + dns_search_domains = ["example.com"] |
| 58 | + ntp_servers = ["pool.ntp.org"] |
| 59 | + num_nodes = 3 |
| 60 | + keep_cluster_on_failure = false |
| 61 | + } |
| 62 | +
|
| 63 | + vm_config { |
| 64 | + cdm_version = "9.2.3-p7-29713" |
| 65 | + instance_type = "STANDARD_D8S_V5" |
| 66 | + location = "westus" |
| 67 | + resource_group = "my-resource-group" |
| 68 | + network_resource_group = "my-network-resource-group" |
| 69 | + vnet_resource_group = "my-vnet-resource-group" |
| 70 | + subnet = "my-subnet" |
| 71 | + vnet = "my-vnet" |
| 72 | + network_security_group = "my-network-security-group" |
| 73 | + network_security_resource_group = "my-network-security-resource-group" |
| 74 | + vm_type = "EXTRA_DENSE" |
| 75 | + } |
| 76 | +} |
| 77 | +``` |
| 78 | + |
| 79 | +## Schema |
| 80 | + |
| 81 | +### Required |
| 82 | + |
| 83 | +- `cloud_account_id` (String) RSC cloud account ID (UUID). |
| 84 | +- `cluster_config` (Block List, Min: 1, Max: 1) Configuration for the cloud cluster. Changing this forces a new resource to be created. (see [below for nested schema](#nestedblock--cluster_config)) |
| 85 | +- `vm_config` (Block List, Min: 1, Max: 1) VM configuration for the cluster nodes. Changing this forces a new resource to be created. (see [below for nested schema](#nestedblock--vm_config)) |
| 86 | + |
| 87 | +### Optional |
| 88 | + |
| 89 | +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) |
| 90 | + |
| 91 | +### Read-Only |
| 92 | + |
| 93 | +- `id` (String) Cloud cluster ID (UUID). |
| 94 | + |
| 95 | +<a id="nestedblock--cluster_config"></a> |
| 96 | +### Nested Schema for `cluster_config` |
| 97 | + |
| 98 | +Required: |
| 99 | + |
| 100 | +- `admin_email` (String) Email address for the cluster admin user. Changing this value will have no effect on the cluster. |
| 101 | +- `admin_password` (String, Sensitive) Password for the cluster admin user. Changing this value will have no effect on the cluster. |
| 102 | +- `cluster_name` (String) Unique name to assign to the cloud cluster. Changing this forces a new resource to be created. |
| 103 | +- `dns_name_servers` (List of String) DNS name servers for the cluster. Changing this forces a new resource to be created. |
| 104 | +- `keep_cluster_on_failure` (Boolean) Whether to keep the cluster on failure (can be useful for troubleshooting). Changing this forces a new resource to be created. |
| 105 | +- `ntp_servers` (List of String) NTP servers for the cluster. Changing this forces a new resource to be created. |
| 106 | +- `num_nodes` (Number) Number of nodes in the cluster. Changing this forces a new resource to be created. |
| 107 | + |
| 108 | +Optional: |
| 109 | + |
| 110 | +- `dns_search_domains` (List of String) DNS search domains for the cluster. Changing this forces a new resource to be created. |
| 111 | + |
| 112 | + |
| 113 | +<a id="nestedblock--vm_config"></a> |
| 114 | +### Nested Schema for `vm_config` |
| 115 | + |
| 116 | +Required: |
| 117 | + |
| 118 | +- `cdm_version` (String) CDM version to use. Changing this forces a new resource to be created. |
| 119 | +- `container_name` (String) Azure storage container name for the cluster. Changing this forces a new resource to be created. |
| 120 | +- `enable_immutability` (Boolean) Whether to enable immutability for the storage account. Changing this forces a new resource to be created. |
| 121 | +- `instance_type` (String) Azure instance type for the cluster nodes. Allowed values are `STANDARD_DS5_V2`, `STANDARD_D16S_V5`, `STANDARD_D8S_V5`, `STANDARD_D32S_V5`, `STANDARD_E16S_V5`, `STANDARD_D8AS_V5`, `STANDARD_D16AS_V5`, `STANDARD_D32AS_V5` and `STANDARD_E16AS_V5`. Changing this forces a new resource to be created. |
| 122 | +- `network_resource_group` (String) Azure resource group name for network resources. Changing this forces a new resource to be created. |
| 123 | +- `network_security_group` (String) Azure network security group name. Changing this forces a new resource to be created. |
| 124 | +- `network_security_resource_group` (String) Azure resource group name for the network security group. Changing this forces a new resource to be created. |
| 125 | +- `region` (String) Azure region to deploy the cluster in. The format should be the native Azure format, e.g. `eastus`, `westus`, etc. Changing this forces a new resource to be created. |
| 126 | +- `resource_group_name` (String) Azure resource group name where the cluster will be deployed. Changing this forces a new resource to be created. |
| 127 | +- `storage_account_name` (String) Azure storage account name for the cluster. Changing this forces a new resource to be created. |
| 128 | +- `subnet` (String) Azure subnet name for the cluster nodes. Changing this forces a new resource to be created. |
| 129 | +- `user_assigned_managed_identity_name` (String) Name of the user-assigned managed identity. Changing this forces a new resource to be created. |
| 130 | +- `vnet` (String) Azure virtual network name. Changing this forces a new resource to be created. |
| 131 | +- `vnet_resource_group` (String) Azure resource group name for the virtual network. Changing this forces a new resource to be created. |
| 132 | + |
| 133 | +Optional: |
| 134 | + |
| 135 | +- `vm_type` (String) VM type for the cluster. Changing this forces a new resource to be created. Possible values are `STANDARD`, `DENSE` and `EXTRA_DENSE`. `DENSE` is recommended for CCES. |
| 136 | + |
| 137 | +Read-Only: |
| 138 | + |
| 139 | +- `cdm_product` (String) CDM Product Code. This is a read-only field and computed based on the CDM version. |
| 140 | + |
| 141 | + |
| 142 | +<a id="nestedblock--timeouts"></a> |
| 143 | +### Nested Schema for `timeouts` |
| 144 | + |
| 145 | +Optional: |
| 146 | + |
| 147 | +- `create` (String) Create resource timeout (defaults to `60m`). |
| 148 | +- `default` (String) Default resource timeout (defaults to `20m`). |
| 149 | +- `read` (String) Read resource timeout (defaults to `20m`). |
0 commit comments