Azure / Azure/azure-rest-api-specs
For virtual WAN/virtual Hub, there is no way to fetch the HubVirtualNetworkConnectionStatus via Python SDK
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 6k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-network_25.3.0/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_list.py
### API Spec version
25.3.0
### Question/Query
I was informed by Azure Python SDK engineer to move the issue here. Previous Git issue in Azure SDK for Python is:
https://github.com/Azure/azure-sdk-for-python/issues/35773
In Azure Portal, it is possible to check the virtual network connectivity status (Connected, Disconnected) in virtual WAN/hub:

With Azure SDK for Python, the only relevant method is through HubVirtualNetworkConnections Operations Class:
https://learn.microsoft.com/en-us/python/api/azure-mgmt-network/azure.mgmt.network.operations.hubvirtualnetworkconnectionsoperations?view=azure-python
But this would not return the connectivity status of virtual network connection:
https://learn.microsoft.com/en-us/python/api/azure-mgmt-network/azure.mgmt.network.models.hubvirtualnetworkconnection?view=azure-python
However; the connectivity status of hub virtual network connection actually exists in this model:
https://learn.microsoft.com/en-us/python/api/azure-mgmt-network/azure.mgmt.network.models.hubvirtualnetworkconnectionstatus?view=azure-python
But there is no operation/class to fetch this data.
Python SDK engineer said that Python SDK is generated by swagger definitions, so they can't decide its features, and asked to check here.
Please suggest if this is going to be implement in the future or there is any workaround for it.
### Environment
_No response_
Contributor guide
Research direction
Start with the API spec example at generated_samples/hub_virtual_network_connection_list.py and compare the HubVirtualNetworkConnections operations with the HubVirtualNetworkConnectionStatus model. Check how the specification maps to the Python SDK's HubVirtualNetworkConnection model and operations; done means the connectivity status can be retrieved through the generated API surface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, python
- Domain
- api, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100