Azure / Azure/azure-powershell
Get-AzureRmVirtualNetworkSubnetConfig not retrieving the NSG Name & other properties associated with the subnet
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
The above commandlet doesn't retrieve all the properties of the NSG which is associated with it. Only the ID is returned but other properties like Name, Rules are empty.
### Script/Steps for Reproduction
1. Have a VNET with Subnet and NSGs associated to the subnet
```powershell
$DebugPreference = 'Continue'
$a = (Get-AzureRmVirtualNetwork -Name "XZE-E-N-VNT-01" -ResourceGroupName "XZE-E-N-NETWORK-RGP-01" | Get-AzureRmVirtualNetworkSubnetConfig)
$a[0].NetworkSecurityGroup.Name
$a[0].NetworkSecurityGroup | Format-List
```
### Module Version
```powershell
PS C:\Users\Pranav> Get-Module -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 5.3.0 Azure {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-Azur...
Script 0.5.4 Azure.AnalysisServices {Add-AzureAnalysisServicesAccount, Restart-AzureAnalysisServicesInstance...
Script 4.5.0 Azure.Storage {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageT...
Script 6.8.1 AzureRM
Script 0.6.14 AzureRM.AnalysisServices {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesSe...
Script 6.1.5 AzureRM.ApiManagement {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-A...
Script 0.1.8 AzureRM.ApplicationInsights {Get-AzureRmApplicationInsights, New-AzureRmApplicationInsights, Remove-...
Script 5.1.1 AzureRM.Automation {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputR...
Script 4.0.10 AzureRM.Backup {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, ...
Script 4.1.5 AzureRM.Batch {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAc...
Script 0.14.6 AzureRM.Billing {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeriod, Get-AzureRmEnrollm...
Script 5.0.5 AzureRM.Cdn {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfi...
Script 0.9.10 AzureRM.CognitiveServices {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccoun...
Script 5.5.2 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmA...
Script 0.3.7 AzureRM.Consumption {Get-AzureRmConsumptionBudget, Get-AzureRmConsumptionMarketplace, Get-Az...
Script 0.2.10 AzureRM.ContainerInstance {New-AzureRmContainerGroup, Get-AzureRmContainerGroup, Remove-AzureRmCon...
Script 1.0.10 AzureRM.ContainerRegistry {New-AzureRmContainerRegistry, Get-AzureRmContainerRegistry, Update-Azur...
Script 5.0.3 AzureRM.DataFactories {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFa...
Script 0.5.10 AzureRM.DataFactoryV2 {Set-AzureRmDataFactoryV2, Update-AzureRmDataFactoryV2, Get-AzureRmDataF...
Script 5.1.4 AzureRM.DataLakeAnalytics {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCat...
Script 6.1.2 AzureRM.DataLakeStore {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreT...
Script 4.0.9 AzureRM.DevTestLabs {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, G...
Script 5.0.4 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsR...
Script 0.3.7 AzureRM.EventGrid {New-AzureRmEventGridTopic, Get-AzureRmEventGridTopic, Set-AzureRmEventG...
Script 0.6.10 AzureRM.EventHub {New-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespace, Set-AzureRm...
Script 4.1.8 AzureRM.HDInsight {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, Wait-A...
Script 5.1.3 AzureRM.Insights {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfil...
Script 3.1.8 AzureRM.IotHub {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-Azure...
Script 5.2.1 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Update-AzureKeyVaultCertificate, Stop-Azu...
Script 4.1.4 AzureRM.LogicApp {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCa...
Script 0.18.5 AzureRM.MachineLearning {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation...
Script 0.4.8 AzureRM.MachineLearningCompute {Get-AzureRmMlOpCluster, Get-AzureRmMlOpClusterKey, Test-AzureRmMlOpClus...
Script 0.2.5 AzureRM.MarketplaceOrdering {Get-AzureRmMarketplaceTerms, Set-AzureRmMarketplaceTerms}
Script 0.10.4 AzureRM.Media {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-Az...
Script 6.6.1 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmAppl...
Script 5.0.3 AzureRM.NotificationHubs {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRule...
Script 5.0.6 AzureRM.OperationalInsights {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOp...
Script 1.0.4 AzureRM.PolicyInsights {Get-AzureRmPolicyEvent, Get-AzureRmPolicyState, Get-AzureRmPolicyStateS...
Script 4.1.10 AzureRM.PowerBIEmbedded {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCo...
Script 5.5.1 AzureRM.Profile {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-A...
Script 4.1.8 AzureRM.RecoveryServices {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesV...
Script 4.4.1 AzureRM.RecoveryServices.Backup {Backup-AzureRmRecoveryServicesBackupItem, Get-AzureRmRecoveryServicesBa...
Script 0.2.9 AzureRM.RecoveryServices.SiteRec... {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-AzureRmRecoveryService...
Script 5.0.5 AzureRM.RedisCache {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEnt...
Script 0.3.10 AzureRM.Relay {New-AzureRmRelayNamespace, Get-AzureRmRelayNamespace, Set-AzureRmRelayN...
Script 6.4.2 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRm...
Script 0.16.10 AzureRM.Scheduler {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollec...
Script 0.6.11 AzureRM.ServiceBus {New-AzureRmServiceBusNamespace, Get-AzureRmServiceBusNamespace, Set-Azu...
Script 0.3.12 AzureRM.ServiceFabric {Add-AzureRmServiceFabricApplicationCertificate, Add-AzureRmServiceFabri...
Script 4.11.3 AzureRM.Sql {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabase...
Script 5.0.4 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmSto...
Script 4.0.10 AzureRM.StreamAnalytics {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFu...
Script 4.0.5 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script 4.1.1 AzureRM.TrafficManager {Add-AzureRmTrafficManagerCustomHeaderToEndpoint, Remove-AzureRmTrafficM...
Script 4.0.5 AzureRM.UsageAggregates Get-UsageAggregates
Script 5.0.9 AzureRM.Websites {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppSer...
Script 1.0.1 Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}
Binary 1.0.0.1 PackageManagement {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Script 3.4.0 Pester {Describe, Context, It, Should...}
Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Module...}
Script 1.2 PSReadline {Get-PSReadlineKeyHandler, Set-PSReadlineKeyHandler, Remove-PSReadlineKe...
```
### Environment Data
```powershell
PS C:\Users\Pranav> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.17134.228
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17134.228
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```
### Debug Output
```
PS C:\Users\Pranav> $DebugPreference = 'Continue'
$a = (Get-AzureRmVirtualNetwork -Name "XZE-E-N-VNT-01" -ResourceGroupName "XZE-E-N-NETWORK-RGP-01" | Get-AzureRmVirtualNetworkSubnetConfig)
$a[0].NetworkSecurityGroup.Name
$a[0].NetworkSecurityGroup | Format-List
DEBUG: 19:40:16 - GetAzureVirtualNetworkCommand begin processing with ParameterSet 'NoExpand'.
DEBUG: 19:40:17 - using account id 'aaa@aaa.com'...
DEBUG: 19:40:17 - GetAzureVirtualNetworkSubnetConfigCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 19:40:17 - using account id 'aaa@aaa.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'Pranav.Jituri@appliedis.com', environment: 'AzureCloud', tenant: '2dfc6
a32-d03c-4504-8d69-f08da326f294'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/2dfc6a32-d03c-4504-8d69-f08da326f294/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (8 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: - TokenCache: Deserialized 8 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: An item matching the requested resource was found in th
e cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: 52.4468470083333 minutes left until token in cache expi
res
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: A matching item (access token or refresh token or both)
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - AcquireTokenHandlerBase: === Token Acquisition finished successfull
y. An access token was retuned:
Access Token Hash: JbVgt4uTd7bcYIwUcJGVM=
Refresh Token Hash: bKTxWXbewOfLSJ3UxKSU=
Expiration Time: 09/11/2018 15:02:43 +00:00
User Hash: nMs9cFQb/7j7XmTr72ZzC9Sw=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/2dfc6a32-d03c-4504-8d69-f08da326f294/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (8 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: - TokenCache: Deserialized 8 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: An item matching the requested resource was found in th
e cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: 52.4467636383333 minutes left until token in cache expi
res
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: A matching item (access token or refresh token or both)
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - AcquireTokenHandlerBase: === Token Acquisition finished successfull
y. An access token was retuned:
Access Token Hash: wJbVgt4uTd7bcYIwUcJGVM=
Refresh Token Hash: QXbKTxWXbewOfLSJ3UxKSU=
Expiration Time: 09/11/2018 15:02:43 +00:00
User Hash: nMs9cFQb/7j7XmTr72ZzC9Sw=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Micros
oft.Network/virtualNetworks/XZE-E-N-VNT-01?api-version=2018-04-01
Headers:
x-ms-client-request-id : c2a1f6c2-4981-4a5c-b8c2-b4c6173d9ad8
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : 0c689f11-9c4f-48fa-ad00-598856783726
x-ms-correlation-request-id : e46fbce4-f406-4577-8c3a-aa8ed2914d94
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
ETag : W/"1ffc5a22-6068-4a40-9f18-2358b45fbc0c"
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11991
x-ms-routing-request-id : WESTINDIA:20180911T141019Z:e46fbce4-f406-4577-8c3a-aa8ed2914d94
X-Content-Type-Options : nosniff
Date : Tue, 11 Sep 2018 14:10:18 GMT
Body:
{
"name": "XZE-E-N-VNT-01",
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Network/virtual
Networks/XZE-E-N-VNT-01",
"etag": "W/\"1ffc5a22-6068-4a40-9f18-2358b45fbc0c\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "eastus2",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "8dc8d417-ce11-4df1-814f-83059db9b8d8",
"addressSpace": {
"addressPrefixes": [
"10.2.0.0/16"
]
},
"subnets": [
{
"name": "UT",
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Network/v
irtualNetworks/XZE-E-N-VNT-01/subnets/UT",
"etag": "W/\"1ffc5a22-6068-4a40-9f18-2358b45fbc0c\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.2.0.0/24",
"networkSecurityGroup": {
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Netwo
rk/networkSecurityGroups/FlowConfigTest"
},
"serviceEndpoints": [],
"delegations": []
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "Test",
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Network/v
irtualNetworks/XZE-E-N-VNT-01/subnets/Test",
"etag": "W/\"1ffc5a22-6068-4a40-9f18-2358b45fbc0c\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.2.1.0/24",
"networkSecurityGroup": {
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Netwo
rk/networkSecurityGroups/NsgTest1"
},
"serviceEndpoints": [],
"delegations": []
},
"type": "Microsoft.Network/virtualNetworks/subnets"
}
],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: [Common.Authentication]: Authenticating using Account: 'aaa@aaa.com', environment: 'AzureCloud', tenant: '2dfc6
a32-d03c-4504-8d69-f08da326f294'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/2dfc6a32-d03c-4504-8d69-f08da326f294/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (8 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: - TokenCache: Deserialized 8 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: An item matching the requested resource was found in th
e cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: 52.4468470083333 minutes left until token in cache expi
res
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - TokenCache: A matching item (access token or refresh token or both)
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: 44c409fb-0c39-4188-9b56-e0bbefb906d5 - AcquireTokenHandlerBase: === Token Acquisition finished successfull
y. An access token was retuned:
Access Token Hash: JbVgt4uTd7bcYIwUcJGVM=
Refresh Token Hash: XbKTxWXbewOfLSJ3UxKSU=
Expiration Time: 09/11/2018 15:02:43 +00:00
User Hash: nMs9cFQb/7j7XmTr72ZzC9Sw=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/2dfc6a32-d03c-4504-8d69-f08da326f294/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (8 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: - TokenCache: Deserialized 8 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: An item matching the requested resource was found in th
e cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: 52.4467636383333 minutes left until token in cache expi
res
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - TokenCache: A matching item (access token or refresh token or both)
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/11/2018 14:10:17: d3a6c614-4e0e-4f3c-a12e-bf9a140b025e - AcquireTokenHandlerBase: === Token Acquisition finished successfull
y. An access token was retuned:
Access Token Hash: NwJbVgt4uTd7bcYIwUcJGVM=
Refresh Token Hash: QXbKTxWXbewOfLSJ3UxKSU=
Expiration Time: 09/11/2018 15:02:43 +00:00
User Hash: +nMs9cFQb/7j7XmTr72ZzC9Sw=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Micros
oft.Network/virtualNetworks/XZE-E-N-VNT-01?api-version=2018-04-01
Headers:
x-ms-client-request-id : c2a1f6c2-4981-4a5c-b8c2-b4c6173d9ad8
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : 0c689f11-9c4f-48fa-ad00-598856783726
x-ms-correlation-request-id : e46fbce4-f406-4577-8c3a-aa8ed2914d94
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
ETag : W/"1ffc5a22-6068-4a40-9f18-2358b45fbc0c"
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11991
x-ms-routing-request-id : WESTINDIA:20180911T141019Z:e46fbce4-f406-4577-8c3a-aa8ed2914d94
X-Content-Type-Options : nosniff
Date : Tue, 11 Sep 2018 14:10:18 GMT
Body:
{
"name": "XZE-E-N-VNT-01",
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Network/virtual
Networks/XZE-E-N-VNT-01",
"etag": "W/\"1ffc5a22-6068-4a40-9f18-2358b45fbc0c\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "eastus2",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "8dc8d417-ce11-4df1-814f-83059db9b8d8",
"addressSpace": {
"addressPrefixes": [
"10.2.0.0/16"
]
},
"subnets": [
{
"name": "UT",
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Network/v
irtualNetworks/XZE-E-N-VNT-01/subnets/UT",
"etag": "W/\"1ffc5a22-6068-4a40-9f18-2358b45fbc0c\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.2.0.0/24",
"networkSecurityGroup": {
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Netwo
rk/networkSecurityGroups/FlowConfigTest"
},
"serviceEndpoints": [],
"delegations": []
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "Test",
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Network/v
irtualNetworks/XZE-E-N-VNT-01/subnets/Test",
"etag": "W/\"1ffc5a22-6068-4a40-9f18-2358b45fbc0c\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.2.1.0/24",
"networkSecurityGroup": {
"id": "/subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.Netwo
rk/networkSecurityGroups/NsgTest1"
},
"serviceEndpoints": [],
"delegations": []
},
"type": "Microsoft.Network/virtualNetworks/subnets"
}
],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: AzureQoSEvent: CommandName - Get-AzureRmVirtualNetwork; IsSuccess - True; Duration - 00:00:01.2124287; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 19:40:18 - GetAzureVirtualNetworkCommand end processing.
DEBUG: 19:40:18 - GetAzureVirtualNetworkCommand end processing.
DEBUG: AzureQoSEvent: CommandName - Get-AzureRmVirtualNetworkSubnetConfig; IsSuccess - True; Duration - 00:00:01.9833797; Exception -
;
DEBUG: Finish sending metric.
DEBUG: 19:40:19 - GetAzureVirtualNetworkSubnetConfigCommand end processing.
DEBUG: 19:40:19 - GetAzureVirtualNetworkSubnetConfigCommand end processing.
Name :
ResourceGroupName :
Location :
Id : /subscriptions/66d477ee-6241-4568-9e3f-d533bd3a8953/resourceGroups/XZE-E-N-NETWORK-RGP-01/providers/Microsoft.
Network/networkSecurityGroups/FlowConfigTest
Etag :
ResourceGuid :
ProvisioningState :
Tags :
SecurityRules : []
DefaultSecurityRules : []
NetworkInterfaces : []
Subnets : []
```
Thanks,
Pranav
Contributor guide
Assessment
This issue has not been assessed yet.