Azure / Azure/azure-sdk-for-python

Synapse Workspace trustedServiceBypassEnabled property has no effect on create or update

オープン
#38,478 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
customer-reported Mgmt needs-team-attention question Service Attention Synapse
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
2日 2時間
マージ済み PR(30日)
213

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

azure/mgmt/synapse/models/_models_py3.py の 13458 行目付近を調べ、モデルプロパティ trustedServiceBypassEnabled と、issue にリンクされている Workspaces Create Or Update REST サンプルを比較します。workspace の作成と更新の両方で Python リクエストを実行し、Synapse のネットワーク設定のチェックボックスが要求した値を反映していることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, python
領域
cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。