Azure Log Analytics Cluster Customer Managed Key
This page shows how to write Terraform and Azure Resource Manager for Log Analytics Cluster Customer Managed Key and write them securely.
azurerm_log_analytics_cluster_customer_managed_key (Terraform)
The Cluster Customer Managed Key in Log Analytics can be configured in Terraform with the resource name azurerm_log_analytics_cluster_customer_managed_key. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_log_analytics_cluster_customer_managed_key" "ab_log_analytics_cluster_customer_managed_key" {
count = (var.custom_key == true) ? 1 : 0
log_analytics_cluster_id = azurerm_log_analytics_cluster.ab_log_analytics_cluster.id
key_vault_key_id = var.key_id
Parameters
-
idoptional computed - string -
key_vault_key_idrequired - string -
log_analytics_cluster_idrequired - string -
timeoutssingle block
Explanation in Terraform Registry
Manages a Log Analytics Cluster Customer Managed Key.
Microsoft.OperationalInsights/clusters (Azure Resource Manager)
The clusters in Microsoft.OperationalInsights can be configured in Azure Resource Manager with the resource name Microsoft.OperationalInsights/clusters. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersionrequired - stringidentityoptionaltyperequired - stringType of managed service identity.
userAssignedIdentitiesoptional - undefinedThe list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
locationrequired - stringThe geo-location where the resource lives
namerequired - stringThe name of the Log Analytics cluster.
propertiesrequiredassociatedWorkspacesoptional arraybillingTypeoptional - stringThe cluster's billing type.
capacityReservationPropertiesoptionalisAvailabilityZonesEnabledoptional - booleanSets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be modified after cluster creation. Default value is 'true' if region supports Availability Zones.
isDoubleEncryptionEnabledoptional - booleanConfigures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true'
keyVaultPropertiesoptionalkeyNameoptional - stringThe name of the key associated with the Log Analytics cluster.
keyRsaSizeoptional - integerSelected key minimum required size.
keyVaultUrioptional - stringThe Key Vault uri which holds they key associated with the Log Analytics cluster.
keyVersionoptional - stringThe version of the key associated with the Log Analytics cluster.
skuoptionalcapacityoptional - integerThe capacity value
nameoptional - stringThe name of the SKU.
tagsoptional - stringResource tags.
typerequired - string
Frequently asked questions
What is Azure Log Analytics Cluster Customer Managed Key?
Azure Log Analytics Cluster Customer Managed Key is a resource for Log Analytics of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Log Analytics Cluster Customer Managed Key?
For Terraform, the konradmaleckipl/Terraform-workshop source code example is useful. See the Terraform Example section for further details.