Azure / Azure/azure-cli

Bicep : Private Endpoint already exists - Cognitive Search

Aperta
#23,398 23 commenti 0 reazioni 0 assegnatari Vedi su GitHub
act-identity-squad Auto-Assign customer-reported needs-team-attention Network - Private Link Service Attention
Lingua principale
Python
Stelle
4.6k
Fork
3.5k
Merge medio
3g 18h
PR unite (30g)
62

Descrizione

> ### `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](https://github.com/Azure/azure-cli/files/9233433/main.txt)

**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](https://github.com/Azure/azure-cli/files/9233479/sqlserver.txt)
based on the arm template supplied here:
https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-bicep?tabs=CLI

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il file main.bicep collegato e riproduci il problema usando az deployment group create, quindi confrontalo con il modello sqlserver.txt collegato. Controlla la seconda distribuzione e quelle successive rispetto all'errore segnalato dell'endpoint privato di Cognitive Search. Il lavoro è completato quando la definizione Bicep può essere distribuita ripetutamente senza tentare di creare un endpoint privato duplicato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure
Ambito
cloud, infrastructure
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.