Azure / Azure/azure-powershell
Get-AzVirtualNetworkSubnetConfig not pulling NSG/RouteTable/NatGW names
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
I have noticed an issue where the Get-AzVirtualNetworkSubnetConfig cmdlet isn't showing the names of attached NSGs, route tables, or NAT GWs in the output table. The data is there, and I can see it when pulling specific fields such as `NetworkSecurityGroupText`, but when running the cmdlet as is, it returns blanks. This could result in confusion as it looks like there are none of these are attached when they really are.

### Issue script & Debug output
```PowerShell
PS /Users/username> Get-AzVirtualNetwork -Name "avnm-hub1" -ResourceGroupName "avnm-meshing" | select Subnets | Get-AzVirtualNetworkSubnetConfig
DEBUG: 3:43:33 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 3:43:33 PM - GetAzureVirtualNetworkCommand begin processing with ParameterSet 'NoExpand'.
DEBUG: 3:43:33 PM - using account id 'user@domain.com'...
DEBUG: 3:43:33 PM - [ConfigManager] Got [True] from [DisplayBreakingChangeWarning], Module = [], Cmdlet = [].
DEBUG: 3:43:33 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 3:43:33 PM - GetAzureVirtualNetworkSubnetConfigCommand begin processing with ParameterSet 'GetByVirtualNetwork'.
DEBUG: 3:43:33 PM - using account id 'user@domain.com'...
DEBUG: 3:43:33 PM - [ConfigManager] Got [True] from [DisplayBreakingChangeWarning], Module = [], Cmdlet = [].
DEBUG: [Common.Authentication]: Authenticating using Account: 'user@domain.com', environment: 'AzureCloud', tenant: '00000000-0000-0000-0000-000000000000'
DEBUG: 3:43:33 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'00000000-0000-0000-0000-000000000000', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'user@domain.com'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z] Found 2 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z] Returning 2 accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(c39a85c4-4bcc-4113-a008-091052a8643c)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - c39a85c4-4bcc-4113-a008-091052a8643c
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] Access token is not expired. Returning the found cache entry. [Current time (12/18/2024 21:43:33) - Expiration Time (12/18/2024 21:59:34 +00:00) - Extended Expiration Time (12/18/2024 21:59:34 +00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] AT expiration time: 12/18/2024 9:59:34 PM +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Cache
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2024-12-18T21:59:34.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '00000000-0000-0000-0000-000000000000', UserId: 'user@domain.com'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1?api-version=2024-03-01
Headers:
Accept-Language : en-US
x-ms-client-request-id : c9916118-aaab-46c7-94c9-6d88cc3f5fd6
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
ETag : W/"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0"
x-ms-request-id : 08b0dca2-852e-44ff-8c1a-1a9b73e52071
x-ms-correlation-request-id : c1a60f16-bdd0-4203-aef1-8631d26805c8
x-ms-arm-service-request-id : 730982e9-3517-49a5-b96a-3b0011725507
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-routing-request-id : WESTCENTRALUS:20241218T214333Z:c1a60f16-bdd0-4203-aef1-8631d26805c8
X-Content-Type-Options : nosniff
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: 297D60A42E02422187225A7FE07D4E70 Ref B: CYS013050701019 Ref C: 2024-12-18T21:43:33Z
Date : Wed, 18 Dec 2024 21:43:33 GMT
Body:
{
"name": "avnm-hub1",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "centralus",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "cff8d57d-143b-4c3f-ad85-3b5724b8d8d2",
"addressSpace": {
"addressPrefixes": [
"10.30.0.0/16"
]
},
"encryption": {
"enabled": false,
"enforcement": "AllowUnencrypted"
},
"privateEndpointVNetPolicies": "Disabled",
"dhcpOptions": {
"dnsServers": []
},
"subnets": [
{
"name": "GatewaySubnet",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1/subnets/GatewaySubnet",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.30.1.0/27",
"ipConfigurations": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AVNM-MESHING/providers/Microsoft.Network/virtualNetworkGateways/AVNM-GW1/ipConfigurations/DEFAULT"
}
],
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Disabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "default",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1/subnets/default",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.30.0.0/24",
"networkSecurityGroup": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/networkSecurityGroups/avnm-hub1-default-nsg-centralus"
},
"ipConfigurations": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AVNM-MESHING/providers/Microsoft.Network/networkInterfaces/AVNM-HUB1-VM1473/ipConfigurations/IPCONFIG1"
}
],
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Disabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
}
],
"virtualNetworkPeerings": [
{
"name": "ANM_22740FFA83EB4B03043CC7E_avnm-hub1_avnm-spoke1_7424918739",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1/virtualNetworkPeerings/ANM_22740FFA83EB4B03043CC7E_avnm-hub1_avnm-spoke1_7424918739",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "be44f39e-be97-0a1c-3ea3-762f9eb1977e",
"peeringState": "Connected",
"peeringSyncLevel": "FullyInSync",
"remoteVirtualNetwork": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-spoke1"
},
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": true,
"useRemoteGateways": false,
"doNotVerifyRemoteGateways": false,
"peerCompleteVnets": true,
"remoteAddressSpace": {
"addressPrefixes": [
"10.31.0.0/16"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"10.31.0.0/16"
]
},
"remoteVirtualNetworkEncryption": {
"enabled": false,
"enforcement": "AllowUnencrypted"
},
"routeServiceVips": {}
},
"type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings"
}
],
"enableDdosProtection": false
}
}
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - 22259158-1079-49b2-872a-03c010806a58] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z] Found 2 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z] Returning 2 accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(c39a85c4-4bcc-4113-a008-091052a8643c)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - c39a85c4-4bcc-4113-a008-091052a8643c
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] Access token is not expired. Returning the found cache entry. [Current time (12/18/2024 21:43:33) - Expiration Time (12/18/2024 21:59:34 +00:00) - Extended Expiration Time (12/18/2024 21:59:34 +00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 8.0.10 MacOS [2024-12-18 21:43:33Z - c39a85c4-4bcc-4113-a008-091052a8643c] AT expiration time: 12/18/2024 9:59:34 PM +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Cache
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2024-12-18T21:59:34.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '00000000-0000-0000-0000-000000000000', UserId: 'user@domain.com'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1?api-version=2024-03-01
Headers:
Accept-Language : en-US
x-ms-client-request-id : 77242ead-dd36-4d19-8c27-ed60b95a626f
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
ETag : W/"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0"
x-ms-request-id : 08b0dca2-852e-44ff-8c1a-1a9b73e52071
x-ms-correlation-request-id : c1a60f16-bdd0-4203-aef1-8631d26805c8
x-ms-arm-service-request-id : 730982e9-3517-49a5-b96a-3b0011725507
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-routing-request-id : WESTCENTRALUS:20241218T214333Z:c1a60f16-bdd0-4203-aef1-8631d26805c8
X-Content-Type-Options : nosniff
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: 297D60A42E02422187225A7FE07D4E70 Ref B: CYS013050701019 Ref C: 2024-12-18T21:43:33Z
Date : Wed, 18 Dec 2024 21:43:33 GMT
Body:
{
"name": "avnm-hub1",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "centralus",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "cff8d57d-143b-4c3f-ad85-3b5724b8d8d2",
"addressSpace": {
"addressPrefixes": [
"10.30.0.0/16"
]
},
"encryption": {
"enabled": false,
"enforcement": "AllowUnencrypted"
},
"privateEndpointVNetPolicies": "Disabled",
"dhcpOptions": {
"dnsServers": []
},
"subnets": [
{
"name": "GatewaySubnet",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1/subnets/GatewaySubnet",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.30.1.0/27",
"ipConfigurations": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AVNM-MESHING/providers/Microsoft.Network/virtualNetworkGateways/AVNM-GW1/ipConfigurations/DEFAULT"
}
],
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Disabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "default",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1/subnets/default",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.30.0.0/24",
"networkSecurityGroup": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/networkSecurityGroups/avnm-hub1-default-nsg-centralus"
},
"ipConfigurations": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AVNM-MESHING/providers/Microsoft.Network/networkInterfaces/AVNM-HUB1-VM1473/ipConfigurations/IPCONFIG1"
}
],
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Disabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
}
],
"virtualNetworkPeerings": [
{
"name": "ANM_22740FFA83EB4B03043CC7E_avnm-hub1_avnm-spoke1_7424918739",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-hub1/virtualNetworkPeerings/ANM_22740FFA83EB4B03043CC7E_avnm-hub1_avnm-spoke1_7424918739",
"etag": "W/\"015ac5d5-3d8b-43ee-942a-12e1b8ab39b0\"",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "be44f39e-be97-0a1c-3ea3-762f9eb1977e",
"peeringState": "Connected",
"peeringSyncLevel": "FullyInSync",
"remoteVirtualNetwork": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/avnm-meshing/providers/Microsoft.Network/virtualNetworks/avnm-spoke1"
},
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": true,
"useRemoteGateways": false,
"doNotVerifyRemoteGateways": false,
"peerCompleteVnets": true,
"remoteAddressSpace": {
"addressPrefixes": [
"10.31.0.0/16"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"10.31.0.0/16"
]
},
"remoteVirtualNetworkEncryption": {
"enabled": false,
"enforcement": "AllowUnencrypted"
},
"routeServiceVips": {}
},
"type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings"
}
],
"enableDdosProtection": false
}
}
DEBUG: 3:43:33 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Network:7.11.0; CommandName: Get-AzVirtualNetwork; PSVersion: 7.4.6; IsSuccess: True; Duration: 00:00:00.4497638; SanitizeDuration: 00:00:00.0000411
DEBUG: 3:43:33 PM - GetAzureVirtualNetworkCommand end processing.
DEBUG: 3:43:33 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 3:43:33 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Network:7.11.0; CommandName: Get-AzVirtualNetworkSubnetConfig; PSVersion: 7.4.6; IsSuccess: True; Duration: 00:00:00.4740696; SanitizeDuration: 00:00:00.0000497
DEBUG: 3:43:33 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 3:43:34 PM - GetAzureVirtualNetworkSubnetConfigCommand end processing.
AddressPrefix Name NetworkSecurityGroup Name RouteTable Name NatGateway Name ProvisioningState PrivateEndpointNetworkPolicie
s
------------- ---- ------------------------- --------------- --------------- ----------------- -----------------------------
{10.30.1.0/27} GatewaySubnet Succeeded Disabled
{10.30.0.0/24} default Succeeded Disabled
```
### Environment data
```PowerShell
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:56:34 PST 2024; root:xnu-11215.61.5~2/RELEAS…
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```
### Module versions
```PowerShell
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 4.0.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDef…
Script 7.11.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplic…
```
### Error output
```PowerShell
```
Contributor guide
Assessment
This issue has not been assessed yet.