Azure / Azure/azure-powershell

[Feature]: Add VNET connectivity status output for Get-AzVirtualHubVnetConnection

Open
#19,789 5 comments 5 reactions 0 assignees View on GitHub
act-quality-productivity-squad customer-reported feature-request Network - Virtual Network Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description of the new feature

Sample output from `Get-AzVirtualHubVnetConnection`

```
Name :
Id : /subscriptions//resourceGroups//providers/Microsoft.Network/virtualHubs//hubVirtualNetworkConnections//RemoteVirtualNetwork : /subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/
EnableInternetSecurity : False
ProvisioningState : Succeeded
RoutingConfiguration : {
"AssociatedRouteTable": {
"Id": "/subscriptions//resourceGroups//providers/Microsoft.Network/virtualHubs//hubRouteTables/
},
"PropagatedRouteTables": {
"Labels": [
"",
"",
"",
""
],
"Ids": [
{
"Id": "/subscriptions//resourceGroups//providers/Microsoft.Network/virtualHubs//hubRouteTables/"
}
]
},
"VnetRoutes": {
"StaticRoutes": []
}
}
```

Currently this do _not_ include the _connectivity status_ of the VNET connection, including this would be a big improvement as it would open up possibilities for more automation to such as handling VNETs that are in a disconnected state.

![image](https://user-images.githubusercontent.com/45947114/195335147-c0c89668-e992-416c-a911-49c7cf84769c.png)

Please add :pray:

### Proposed implementation details (optional)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the Get-AzVirtualHubVnetConnection cmdlet implementation and the model or API response that supplies its output. Trace how the existing VNET connection properties are exposed, then verify that connectivity status appears in the command output and that the relevant tests cover it.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.