Azure / Azure/azure-sdk-for-python

Synapse Workspace trustedServiceBypassEnabled property has no effect on create or update

Aperta
#38,478 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
customer-reported Mgmt needs-team-attention question Service Attention Synapse
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

- **Package Name**: azure-mgmt-synapse
- **Package Version**: 2.0.0
- **Operating System**: Windows 10 Pro 22H2
- **Python Version**: 3.10.7

**Describe the bug**

Setting the `trustedServiceBypassEnabled` property to `True` on workspace creation or update has no effect on the workspace's _"Allow Azure services and resources to access this workspace"_ checkbox under **Synapse workspace > Security > Networking > Firewall rules**.

**To Reproduce**

Use the Python sample request available at [Workspaces - Create Or Update - REST API (Azure Synapse) | Microsoft Learn](https://learn.microsoft.com/en-us/rest/api/synapse/resourcemanager/workspaces/create-or-update?view=rest-synapse-resourcemanager-2021-06-01&tabs=Python) and extend it with:

```python
workspace_info={
"properties": {
"trustedServiceBypassEnabled": True
}
}
```

**Expected behavior**

The _"Allow Azure services and resources to access this workspace"_ checkbox is ticked upon workspace creation or update.

**Screenshots**

![Image](https://github.com/user-attachments/assets/102f1652-7c6f-4f87-995f-5483dab7be19)

**Additional context**

https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/models/_models_py3.py#L13458

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Esamina azure/mgmt/synapse/models/_models_py3.py intorno alla riga 13458 e confronta la proprietà del modello trustedServiceBypassEnabled con l'esempio REST Workspaces Create Or Update collegato nell'issue. Esegui la richiesta Python sia per la creazione sia per l'aggiornamento di un workspace, quindi verifica che la casella di controllo della rete Synapse rifletta il valore richiesto.

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

Valutazione

Stack tecnologico
azure, python
Ambito
cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.