Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Dashboard/grafana #275

Merged
merged 11 commits into from
Aug 7, 2023
55 changes: 55 additions & 0 deletions examples/Microsoft.Dashboard/grafana/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
terraform {
required_version = ">= 1.3.3"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.27"
}
azapi = {
source = "Azure/azapi"
version = "1.0.0"
}
}
}
provider "azurerm" {
features {}
skip_provider_registration = true
}

provider "azapi" {
}

#####################
## Resource Group:-
#####################

resource "azurerm_resource_group" "azrg" {
name = "GrafanaRG"
location = "West Europe"
}

##############################
## Azure Managed Grafana:-
##############################
resource "azapi_resource" "azgrafana" {
type = "Microsoft.Dashboard/grafana@2022-08-01"
name = "AMGrafanaTest"
parent_id = azurerm_resource_group.azrg.id
location = azurerm_resource_group.azrg.location

identity {
type = "SystemAssigned"
}

body = jsonencode({
sku = {
name = "Standard"
}
properties = {
publicNetworkAccess = "Enabled",
zoneRedundancy = "Enabled",
apiKey = "Enabled",
deterministicOutboundIP = "Enabled"
}
})
}