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

Add resource provider registration resource #1234

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module "example" {
role_mapping = var.role_mapping
storage_accounts = var.storage_accounts
subscription_billing_role_assignments = var.subscription_billing_role_assignments
resource_provider_registration = var.resource_provider_registration
tags = local.tags

azuread = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource_provider_registration = {
container_service = {
name = "Microsoft.ContainerService"
feature_name = "AKS-DataPlaneAutoApprove"
registered = true
}
network_rule_name_logging = {
name = "Microsoft.Network"
feature_name = "AFWEnableNetworkRuleNameLogging"
registered = true
}
}
9 changes: 9 additions & 0 deletions resource_provider_registration.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "azurerm_resource_provider_registration" "default" {
for_each = var.resource_provider_registration
name = each.value.name

feature {
name = each.value.feature_name
registered = each.value.registered
}
}
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,6 @@ variable "purview" {
variable "sentinel_watchlists" {
default = {}
}
variable "resource_provider_registration" {
default = {}
}