question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bicep : Private Endpoint already exists - Cognitive Search

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

az deployment group create --template-file main.bicep --resource-group %rg%

Describe the bug on running the bicep template the 2nd/3rd/4th etc time an error that the private endpoint already exists . it runs successfully the first time

Call to Microsoft.Search/searchServices failed. Error message: PrivateEndpointConnectionProxy myPrivateEndpoint.b2686eab-ca66-415d-8354-89a557719bfe already exists on search service sqlserverk7n35dszoxenq

To Reproduce main.bicep

Expected behavior ability to run the bicep definition multiple times without error/ trying to create another private endpoint

Environment summary

azure-cli                         2.38.0

core                              2.38.0
telemetry                          1.0.6

Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\domalley\.azure\cliextensions'

Python (Windows) 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 15:58:59) [MSC v.1929 32 bit (Intel)]

Additional context the same configuration works for sql server main.bicep based on the arm template supplied here: https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-bicep?tabs=CLI

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tim-telencommented, Aug 25, 2022

Same issue here.

2reactions
alex-frankelcommented, Aug 23, 2022

This is an idempotency issue with the resource provider. @yonzhan – what is the right way to involve the Networking Resource Provider to look into this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bicep : Private Endpoint already exists - Cognitive Search
I've been told its an API issue and not a bicep issue, I would say the issue is bicep is trying to create...
Read more >
Configure Azure Cognitive Search services with private ...
Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.
Read more >
Bicep/ARM Creating storage account with endpoint link to ...
Currently the template will deploy the storage account to the appropriate vnet and deploy a new private endpoint but I am stuck on...
Read more >
Azure Cognitive Search Sink Connector for Confluent Cloud
At least one index must exist in Azure Cognitive Search. ... If you already have connectors in your cluster, click + Add connector....
Read more >
Using Microsoft Azure Cognitive Services to perform a web ...
Learn how to integrate #Microsoft #Azure Cognitive Search on a website to catalog videos, blogs and more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found