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

Deploying an Azure Private Endpoint for azuremonitor gives internal server error #26010

Open
1 task done
RHooijer opened this issue May 17, 2024 · 3 comments
Open
1 task done

Comments

@RHooijer
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.8.3

AzureRM Provider Version

3.104.0

Affected Resource(s)/Data Source(s)

azurerm_private_endpoint

Terraform Configuration Files

resource "azurerm_private_endpoint" "this" {
  name                = "name"
  resource_group_name = "namerg"
  location            = "westeurope"

  subnet_id = "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/az142nvnexxx"

  private_dns_zone_group {
    name                 = "azuremonitor-pep-zone-group"
    private_dns_zone_ids = [
      "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/privateDnsZones/privatelink.monitor.azure.com",
      "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/privateDnsZones/privatelink.oms.opinsights.azure.com",
      "/subscriptions/xxx/resourceGroups/xxx/Microsoft.Network/privateDnsZones/privatelink.ods.opinsights.azure.com",
      "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/privateDnsZones/privatelink.agentsvc.azure-automation.net",
      "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/privateDnsZones/privatelink.blob.core.windows.net"
    ]
    }

  private_service_connection {
    name                           = "name"
    private_connection_resource_id = module.azurerm_monitor_private_link_scope.output.id
    is_manual_connection           = false
    subresource_names = [
      "azuremonitor"
    ]
  }
}

Debug Output/Panic Output

╷
│ Error: waiting for creation of Private DNS Zone Group "azuremonitor-pep-zone-group" for Private Endpoint (Subscription: ""
│ Resource Group Name: ""
│ Private Endpoint Name: "azuremonitor-pep"): Code="InternalServerError" Message="An error occurred." Details=[]
│ 
│   with azurerm_private_endpoint.this,
│   on main.tf line 466, in resource "azurerm_private_endpoint" "this":
│  466: resource "azurerm_private_endpoint" "this" {
│ 
╵
##[error]Error: The process '/agent/_work/_tool/terraform/1.8.3/x64/terraform' failed with exit code 1

Expected Behaviour

Deploy a private endpoint and give succesfull deployment

Actual Behaviour

The private endpoint is deployed and does work, but the pipeline gives the following error:

│ Error: waiting for creation of Private DNS Zone Group "azuremonitor-pep-zone-group" for Private Endpoint (Subscription: ""
│ Resource Group Name: ""
│ Private Endpoint Name: "azuremonitor-pep"): Code="InternalServerError" Message="An error occurred." Details=[]

│ with azurerm_private_endpoint.this,
│ on main.tf line 466, in resource "azurerm_private_endpoint" "this":
│ 466: resource "azurerm_private_endpoint" "this" {


##[error]Error: The process '/agent/_work/_tool/terraform/1.8.3/x64/terraform' failed with exit code 1

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@ZeJ0hn
Copy link

ZeJ0hn commented May 22, 2024

Exactly the same issue since few days.
It was working last month.

But if I use terraform apply a second time, Private DNS Zone Group has been successfully created.

@RHooijer
Copy link
Author

@ZeJ0hn do you know in which azurerm version it was still working? If so I can test if it does work with older versions.

@ZeJ0hn
Copy link

ZeJ0hn commented May 31, 2024

@RHooijer Not sure that is a azurerm issue because I didn't change it.
Maybe more an Azure API issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants