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

azurerm endpoint permission on "PrivateEndpointConnectionsApproval/action", #37

Open
JamesWoolfenden opened this issue Nov 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@JamesWoolfenden
Copy link
Owner

Azure rm endpoint can connect to many different endpoint type and each needs a different permission e.g. a redis cache requires "Microsoft.Cache/redis/PrivateEndpointConnectionsApproval/action".

So you can either add them all, none or somehow inspect the endpoint resource to determine what it needs:
`resource "azurerm_private_endpoint" "pike" {
resource_group_name = "pike"
location = "uksouth"
subnet_id = "/subscriptions/037ce662-dfc1-4b8b-a8a7-6c414b540ed6/resourceGroups/pike/providers/Microsoft.Network/virtualNetworks/pike/subnets/pike"
name = "pike"
private_service_connection {
private_connection_resource_id = azurerm_redis_cache.pike.id
is_manual_connection = false
name = "cachy"
subresource_names = [
"redisCache",
]
}

private_dns_zone_group {
  name                 = "default"
  private_dns_zone_ids = ["/subscriptions/037ce662-dfc1-4b8b-a8a7-6c414b540ed6/resourceGroups/pike/providers/Microsoft.Network/privateDnsZones/private.beer"]
}

timeouts {

}
tags = {pike="permission" }

}`

@JamesWoolfenden JamesWoolfenden added the enhancement New feature or request label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant