Azure / Azure/azure-sdk-for-python

Synapse Workspace trustedServiceBypassEnabled property has no effect on create or update

Ouverte
#38,478 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
customer-reported Mgmt needs-team-attention question Service Attention Synapse
Langage dominant
Python
Étoiles
5.6k
Forks
3.4k
Merge moyen
2 j 2 h
PR mergées (30 j)
213

Description

- **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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Inspectez azure/mgmt/synapse/models/_models_py3.py autour de la ligne 13458 et comparez la propriété du modèle trustedServiceBypassEnabled avec l’exemple REST Workspaces Create Or Update référencé dans l’issue. Exécutez la requête Python à la fois pour la création et pour la mise à jour d’un workspace, puis vérifiez que la case à cocher de mise en réseau Synapse reflète la valeur demandée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, python
Domaine
cloud
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.