Skip to content

Instantly share code, notes, and snippets.

@heoelri
Created December 22, 2022 14:24
Show Gist options
  • Save heoelri/d780e0a6c799a31e760ae9139d4fddaf to your computer and use it in GitHub Desktop.
Save heoelri/d780e0a6c799a31e760ae9139d4fddaf to your computer and use it in GitHub Desktop.
AzAPI resource definition to deploy the azure monitor workspace
resource "azapi_resource" "prometheus" {
type = "microsoft.monitor/accounts@2021-06-03-preview"
name = "prometheus-workspace"
parent_id = "/resource/group/resource/id" # replace with ResourceId
location = "uksouth"
response_export_values = ["*"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment