microsoft-foundry / microsoft-foundry/foundry-samples

Private Endpoint Creation fails for BYOVNET

Open
#553 6 comments 1 reaction 3 assignees View on GitHub

@meerakurup is already working on this.

Since Aug 13, 2026.

bug
Dominant language
Bicep
Stars
445
Forks
494
Avg merge
11h 35m
Merged PRs (30d)
38

Description

Using the code provided in /infrastructure/infrastructure-setup-terraform/15b-private-network-standard-agent-setup-byovnet the private endpoint creation fails with error:

│ Error: creating Private Endpoint (Subscription: "xxx"
│ Resource Group Name: "yyy"
│ Private Endpoint Name: "aifoundryNNNNN-private-endpoint"): unexpected status 400 (400 Bad Request) with error: AccountProvisioningStateInvalid: Call to Microsoft.CognitiveServices/accounts failed. Error message: Account /subscriptions/xxx/resourceGroups/yyy/providers/Microsoft.CognitiveServices/accounts/aifoundryNNNNN in state Accepted

│ with azurerm_private_endpoint.pe_aifoundry,
│ on main.tf line 298, in resource "azurerm_private_endpoint" "pe_aifoundry":
│ 298: resource "azurerm_private_endpoint" "pe_aifoundry" {

This seems to be related to Terraform Provider Azurerm issue 31712
https://github.com/hashicorp/terraform-provider-azurerm/issues/31712

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.