microsoft-foundry / microsoft-foundry/foundry-samples
Private Endpoint Creation fails for BYOVNET
@meerakurup is already working on this.
Since Aug 13, 2026.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.