Add-AzureRmVirtualNetworkPeering "The object reference was not set to an object instance."
Description
Add-AzureRmVirtualNetworkPeering does not work and gives an error. The object reference was not set to an object instance.
Script/Steps for Reproduction
# Variables for common values used throughout the script.
$rgName='myResourceGroup'
# Create a resource group.
New-AzureRmResourceGroup -Name $rgName -Location westcentralus
# Create virtual network 1.
$vnet1 = New-AzureRmVirtualNetwork -ResourceGroupName $rgName -Name 'myVnet1' -AddressPrefix '10.0.0.0/16' -Location westeurope
# Create virtual network 2.
$vnet2 = New-AzureRmVirtualNetwork -ResourceGroupName $rgName -Name 'myVnet2' -AddressPrefix '10.1.0.0/16' -Location westeurope
# Peer VNet1 to VNet2.
Add-AzureRmVirtualNetworkPeering -Name 'myVnet1ToMyVnet2' -VirtualNetwork $vnet1 -RemoteVirtualNetworkId $vnet2.Id
# Peer VNet2 to VNet1.
Add-AzureRmVirtualNetworkPeering -Name 'myVnet2ToMyVnet1' -VirtualNetwork $vnet2 -RemoteVirtualNetworkId $vnet1.Id
Module Version
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 0.6.14 AzureRM.AnalysisServices {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesServer, Get-AzureRmAnalysisServicesServer,...
Script 6.1.5 AzureRM.ApiManagement {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-AzureRmApiManagementHostnameConfiguration...
Script 0.1.8 AzureRM.ApplicationInsights {Get-AzureRmApplicationInsights, New-AzureRmApplicationInsights, Remove-AzureRmApplicationInsights, Set-AzureRmA...
Script 5.1.1 AzureRM.Automation {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputRecord, Import-AzureRmAutomationDscNodeCo...
Script 4.0.10 AzureRM.Backup {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, Get-AzureRmBackupContainer, Register-Azu...
Script 4.1.5 AzureRM.Batch {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAccountKeys, New-AzureRmBatchAccount...}
Script 0.14.6 AzureRM.Billing {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeriod, Get-AzureRmEnrollmentAccount}
Script 5.0.6 AzureRM.Cdn {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfile, Remove-AzureRmCdnProfile...}
Script 0.9.10 AzureRM.CognitiveServices {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccountKey, Get-AzureRmCognitiveServicesAccoun...
Script 5.6.0 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-AzureRmAvailabili...
Script 0.3.7 AzureRM.Consumption {Get-AzureRmConsumptionBudget, Get-AzureRmConsumptionMarketplace, Get-AzureRmConsumptionPriceSheet, Get-AzureRmC...
Script 0.2.10 AzureRM.ContainerInstance {New-AzureRmContainerGroup, Get-AzureRmContainerGroup, Remove-AzureRmContainerGroup, Get-AzureRmContainerInstanc...
Script 1.0.10 AzureRM.ContainerRegistry {New-AzureRmContainerRegistry, Get-AzureRmContainerRegistry, Update-AzureRmContainerRegistry, Remove-AzureRmCont...
Script 5.0.3 AzureRM.DataFactories {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFactorySlice, Save-AzureRmDataFactoryLog...}
Script 0.5.10 AzureRM.DataFactoryV2 {Set-AzureRmDataFactoryV2, Update-AzureRmDataFactoryV2, Get-AzureRmDataFactoryV2, Remove-AzureRmDataFactoryV2...}
Script 5.1.4 AzureRM.DataLakeAnalytics {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCatalogCredential, Remove-AzureRmDataLakeAn...
Script 6.1.2 AzureRM.DataLakeStore {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLake...
Script 4.0.9 AzureRM.DevTestLabs {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, Get-AzureRmDtlAutoStartPolicy, Get-AzureR...
Script 5.1.0 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, Set-AzureRmDnsRecordSet...}
Script 0.3.7 AzureRM.EventGrid {New-AzureRmEventGridTopic, Get-AzureRmEventGridTopic, Set-AzureRmEventGridTopic, New-AzureRmEventGridTopicKey...}
Script 0.6.10 AzureRM.EventHub {New-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespace, Set-AzureRmEventHubNamespace, Remove-AzureRmEventHu...
Script 4.1.8 AzureRM.HDInsight {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, Wait-AzureRmHDInsightJob, New-AzureRmHDInsight...
Script 5.1.4 AzureRM.Insights {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfile, Get-AzureRmLogProfile...}
Script 3.1.8 AzureRM.IotHub {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-AzureRmIotHubConnectionString, Get-AzureRmIot...
Script 5.2.1 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Update-AzureKeyVaultCertificate, Stop-AzureKeyVaultCertificateOperation, Get-Azur...
Script 4.1.4 AzureRM.LogicApp {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCallbackUrl, Get-AzureRmIntegrationAccount...
Script 0.18.5 AzureRM.MachineLearning {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentPlanUsageHistor...
Script 0.4.8 AzureRM.MachineLearningCompute {Get-AzureRmMlOpCluster, Get-AzureRmMlOpClusterKey, Test-AzureRmMlOpClusterSystemServicesUpdateAvailability, Upd...
Script 0.2.5 AzureRM.MarketplaceOrdering {Get-AzureRmMarketplaceTerms, Set-AzureRmMarketplaceTerms}
Script 0.10.4 AzureRM.Media {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-AzureRmMediaServiceKeys, Get-AzureRmMediaS...
Script 6.8.0 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticationCertificate,...
Script 5.0.3 AzureRM.NotificationHubs {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRules, Get-AzureRmNotificationHubListKeys, G...
Script 5.0.6 AzureRM.OperationalInsights {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOperationalInsightsCustomLogDataSource, Di...
Script 1.0.4 AzureRM.PolicyInsights {Get-AzureRmPolicyEvent, Get-AzureRmPolicyState, Get-AzureRmPolicyStateSummary}
Script 4.1.10 AzureRM.PowerBIEmbedded {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCol...
Script 5.6.0 AzureRM.profile {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataCollection, Enable-AzureRmCont...
Script 4.1.8 AzureRM.RecoveryServices {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryServicesVaultSe...
Script 4.4.1 AzureRM.RecoveryServices.Backup {Backup-AzureRmRecoveryServicesBackupItem, Get-AzureRmRecoveryServicesBackupManagementServer, Get-AzureRmRecover...
Script 0.2.10 AzureRM.RecoveryServices.SiteRec... {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-AzureRmRecoveryServicesAsrAlertSetting, Get-AzureRmRecoverySer...
Script 5.0.6 AzureRM.RedisCache {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEntry, Get-AzureRmRedisCachePatchSchedule, ...
Script 0.3.10 AzureRM.Relay {New-AzureRmRelayNamespace, Get-AzureRmRelayNamespace, Set-AzureRmRelayNamespace, Remove-AzureRmRelayNamespace...}
Script 6.5.0 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRoleAssignmen...
Script 0.16.10 AzureRM.Scheduler {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollection, Get-AzureRmSchedulerJobCollection,...
Script 0.6.12 AzureRM.ServiceBus {New-AzureRmServiceBusNamespace, Get-AzureRmServiceBusNamespace, Set-AzureRmServiceBusNamespace, Remove-AzureRmS...
Script 0.3.12 AzureRM.ServiceFabric {Add-AzureRmServiceFabricApplicationCertificate, Add-AzureRmServiceFabricClientCertificate, Add-AzureRmServiceFa...
Script 1.0.0 AzureRM.SignalR {New-AzureRmSignalR, Get-AzureRmSignalR, Get-AzureRmSignalRKey, New-AzureRmSignalRKey...}
Script 4.11.3 AzureRM.Sql {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabaseTransparentDataEncryptionActivity, Set-A...
Script 5.1.0 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmStorageAccountKe...
Script 4.0.10 AzureRM.StreamAnalytics {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFunctionDefinition, New-AzureRmStreamAnaly...
Script 4.0.5 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script 4.1.1 AzureRM.TrafficManager {Add-AzureRmTrafficManagerCustomHeaderToEndpoint, Remove-AzureRmTrafficManagerCustomHeaderFromEndpoint, Add-Azur...
Script 4.0.5 AzureRM.UsageAggregates Get-UsageAggregates
Script 5.1.0 AzureRM.Websites {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-AzureRmAppServicePlan...}
Environment Data
Name Value
---- -----
PSVersion 5.1.16299.637
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.637
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Debug Output
PS H:\> $DebugPreference='Continue'
# Variables for common values used throughout the script.
$rgName='myResourceGroup'
# Create a resource group.
New-AzureRmResourceGroup -Name $rgName -Location westcentralus
# Create virtual network 1.
$vnet1 = New-AzureRmVirtualNetwork -ResourceGroupName $rgName -Name 'myVnet1' -AddressPrefix '10.0.0.0/16' -Location westeurope
# Create virtual network 2.
$vnet2 = New-AzureRmVirtualNetwork -ResourceGroupName $rgName -Name 'myVnet2' -AddressPrefix '10.1.0.0/16' -Location westeurope
# Peer VNet1 to VNet2.
Add-AzureRmVirtualNetworkPeering -Name 'myVnet1ToMyVnet2' -VirtualNetwork $vnet1 -RemoteVirtualNetworkId $vnet2.Id
# Peer VNet2 to VNet1.
Add-AzureRmVirtualNetworkPeering -Name 'myVnet2ToMyVnet1' -VirtualNetwork $vnet2 -RemoteVirtualNetworkId $vnet1.Id
DEBUG: 15:42:32 - NewAzureResourceGroupCmdlet begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 15:42:32 - using account id 'username'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'username', environment: 'AzureCloud', tenant: 'c97d91eb-9931-4447-80be-d3e4e3e95cd5'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: 89dda0c8-c551-4c2f-b843-6e0d29615e41 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:32: 89dda0c8-c551-4c2f-b843-6e0d29615e41 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: 89dda0c8-c551-4c2f-b843-6e0d29615e41 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:32: 89dda0c8-c551-4c2f-b843-6e0d29615e41 - TokenCache: 17.7250331383333 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: 89dda0c8-c551-4c2f-b843-6e0d29615e41 - 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/27/2018 13:42:32: 89dda0c8-c551-4c2f-b843-6e0d29615e41 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: 6624ae17-10af-43dc-a65e-efdbba676746 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:32: 6624ae17-10af-43dc-a65e-efdbba676746 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: 6624ae17-10af-43dc-a65e-efdbba676746 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:32: 6624ae17-10af-43dc-a65e-efdbba676746 - TokenCache: 17.7247731266667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: 6624ae17-10af-43dc-a65e-efdbba676746 - 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/27/2018 13:42:32: 6624ae17-10af-43dc-a65e-efdbba676746 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
HEAD
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourcegroups/myResourceGroup?api-version=2018-05-01
Headers:
x-ms-client-request-id : 53f04e47-205e-491d-b709-803c5881c5e9
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-ratelimit-remaining-subscription-reads: 11990
x-ms-request-id : 608ce80b-4500-4eab-b7cd-8bb5bdab2daa
x-ms-correlation-request-id : 608ce80b-4500-4eab-b7cd-8bb5bdab2daa
x-ms-routing-request-id : FRANCESOUTH:20180927T134232Z:608ce80b-4500-4eab-b7cd-8bb5bdab2daa
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Thu, 27 Sep 2018 13:42:32 GMT
Body:
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: df5a00aa-dcc6-4dc9-bbe8-ee6fe13ef8b2 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:32: df5a00aa-dcc6-4dc9-bbe8-ee6fe13ef8b2 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: df5a00aa-dcc6-4dc9-bbe8-ee6fe13ef8b2 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:32: df5a00aa-dcc6-4dc9-bbe8-ee6fe13ef8b2 - TokenCache: 17.7130538383333 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:32: df5a00aa-dcc6-4dc9-bbe8-ee6fe13ef8b2 - 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/27/2018 13:42:32: df5a00aa-dcc6-4dc9-bbe8-ee6fe13ef8b2 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourcegroups/myResourceGroup?api-version=2018-05-01
Headers:
x-ms-client-request-id : 8cf8864e-9d91-4615-a876-0fbde58a9674
accept-language : en-US
Body:
{
"location": "westcentralus"
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Created
Headers:
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-writes: 1198
x-ms-request-id : 5b1aa098-ec3e-4ef4-9617-78d694aa81c5
x-ms-correlation-request-id : 5b1aa098-ec3e-4ef4-9617-78d694aa81c5
x-ms-routing-request-id : FRANCESOUTH:20180927T134235Z:5b1aa098-ec3e-4ef4-9617-78d694aa81c5
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Thu, 27 Sep 2018 13:42:34 GMT
Body:
{
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup",
"name": "myResourceGroup",
"location": "westcentralus",
"properties": {
"provisioningState": "Succeeded"
}
}
ResourceGroupName : myResourceGroup
Location : westcentralus
ProvisioningState : Succeeded
Tags :
ResourceId : /subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup
DEBUG: AzureQoSEvent: CommandName - New-AzureRmResourceGroup; IsSuccess - True; Duration - 00:00:03.3956485; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 15:42:37 - NewAzureResourceGroupCmdlet end processing.
DEBUG: 15:42:37 - NewAzureResourceGroupCmdlet end processing.
DEBUG: 15:42:37 - NewAzureVirtualNetworkCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 15:42:37 - using account id 'username'...
WARNUNG: Breaking changes in the cmdlet 'New-AzureRmVirtualNetwork' :
WARNUNG: - "The output type 'Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork' is changing"
- The following properties in the output type are being deprecated :
'EnableVmProtection'
DEBUG: [Common.Authentication]: Authenticating using Account: 'username', environment: 'AzureCloud', tenant: 'c97d91eb-9931-4447-80be-d3e4e3e95cd5'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: cf4b71ca-dd7f-47f5-8d89-59c9d30fcd3a - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:37: cf4b71ca-dd7f-47f5-8d89-59c9d30fcd3a - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: cf4b71ca-dd7f-47f5-8d89-59c9d30fcd3a - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:37: cf4b71ca-dd7f-47f5-8d89-59c9d30fcd3a - TokenCache: 17.6438290083333 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: cf4b71ca-dd7f-47f5-8d89-59c9d30fcd3a - 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/27/2018 13:42:37: cf4b71ca-dd7f-47f5-8d89-59c9d30fcd3a - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: 3ca0e4dc-f5f3-4ad0-bb1f-c440c13a50eb - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:37: 3ca0e4dc-f5f3-4ad0-bb1f-c440c13a50eb - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: 3ca0e4dc-f5f3-4ad0-bb1f-c440c13a50eb - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:37: 3ca0e4dc-f5f3-4ad0-bb1f-c440c13a50eb - TokenCache: 17.64364558 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:37: 3ca0e4dc-f5f3-4ad0-bb1f-c440c13a50eb - 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/27/2018 13:42:37: 3ca0e4dc-f5f3-4ad0-bb1f-c440c13a50eb - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1?api-version=2018-08-01
Headers:
x-ms-client-request-id : 5a25b912-6fdd-4c68-83dc-3f0fa5d28cb3
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-request-id : 7587ec7a-4890-4468-a7a6-2800c1d34cef
x-ms-correlation-request-id : 7587ec7a-4890-4468-a7a6-2800c1d34cef
x-ms-routing-request-id : FRANCESOUTH:20180927T134238Z:7587ec7a-4890-4468-a7a6-2800c1d34cef
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Thu, 27 Sep 2018 13:42:37 GMT
Body:
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Network/virtualNetworks/myVnet1' under resource group 'myResourceGroup' was not found."
}
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:38: 0c7a6b99-4801-44f4-bc5b-a196b501e0e0 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:38: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:38: 0c7a6b99-4801-44f4-bc5b-a196b501e0e0 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:38: 0c7a6b99-4801-44f4-bc5b-a196b501e0e0 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:38: 0c7a6b99-4801-44f4-bc5b-a196b501e0e0 - TokenCache: 17.6165791866667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:38: 0c7a6b99-4801-44f4-bc5b-a196b501e0e0 - 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/27/2018 13:42:38: 0c7a6b99-4801-44f4-bc5b-a196b501e0e0 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1?api-version=2018-08-01
Headers:
x-ms-client-request-id : b121f18c-e868-47c5-bd57-721ed111fc70
accept-language : en-US
Body:
{
"properties": {
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false
},
"location": "westeurope"
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Created
Headers:
Pragma : no-cache
Retry-After : 3
x-ms-request-id : b1c2e39f-4c2a-4c67-af73-6f1d7b809544
Azure-AsyncOperation : https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/providers/Microsoft.Network/locations/westeurope/operations/b1c2e39f-4c2a-4c67-af73-6f1d7b8
09544?api-version=2018-08-01
x-ms-correlation-request-id : 70f81078-f286-4900-815f-c0fbddd4581b
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1198
x-ms-routing-request-id : FRANCESOUTH:20180927T134241Z:70f81078-f286-4900-815f-c0fbddd4581b
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:42:41 GMT
Body:
{
"name": "myVnet1",
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1",
"etag": "W/\"83271cba-30d3-42f1-a9d5-b1976d95d82f\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "825f57e0-0302-4178-aa43-d71e54a0a628",
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:51: 641d97bb-31cf-440f-a68b-ef5282f1adfc - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:52: 641d97bb-31cf-440f-a68b-ef5282f1adfc - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: 641d97bb-31cf-440f-a68b-ef5282f1adfc - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:52: 641d97bb-31cf-440f-a68b-ef5282f1adfc - TokenCache: 17.3947837416667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: 641d97bb-31cf-440f-a68b-ef5282f1adfc - 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/27/2018 13:42:52: 641d97bb-31cf-440f-a68b-ef5282f1adfc - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/providers/Microsoft.Network/locations/westeurope/operations/b1c2e39f-4c2a-4c67-af73-6f1d7b809544?api-version=2018-08-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : dc69359a-35cb-4b85-89c7-7be41680efa0
x-ms-correlation-request-id : 3be90f71-4dc8-4381-a075-77bb32b4e636
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11986
x-ms-routing-request-id : FRANCESOUTH:20180927T134252Z:3be90f71-4dc8-4381-a075-77bb32b4e636
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:42:51 GMT
Body:
{
"status": "Succeeded"
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: c89c91d9-f2cf-4d64-8f44-b4056adb2d89 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:52: c89c91d9-f2cf-4d64-8f44-b4056adb2d89 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: c89c91d9-f2cf-4d64-8f44-b4056adb2d89 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:52: c89c91d9-f2cf-4d64-8f44-b4056adb2d89 - TokenCache: 17.391434275 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: c89c91d9-f2cf-4d64-8f44-b4056adb2d89 - 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/27/2018 13:42:52: c89c91d9-f2cf-4d64-8f44-b4056adb2d89 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1?api-version=2018-08-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : 550d0963-63cd-402d-8bbc-73a6a6fffb3c
x-ms-correlation-request-id : 35806da2-8fbd-4c8b-8304-2fde903e22d4
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
ETag : W/"896a96fd-0c47-4521-ac89-d8ec6938a71f"
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11985
x-ms-routing-request-id : FRANCESOUTH:20180927T134252Z:35806da2-8fbd-4c8b-8304-2fde903e22d4
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:42:51 GMT
Body:
{
"name": "myVnet1",
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1",
"etag": "W/\"896a96fd-0c47-4521-ac89-d8ec6938a71f\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "825f57e0-0302-4178-aa43-d71e54a0a628",
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: 83650553-ec84-4f79-83ca-673383fccdca - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:52: 83650553-ec84-4f79-83ca-673383fccdca - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: 83650553-ec84-4f79-83ca-673383fccdca - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:52: 83650553-ec84-4f79-83ca-673383fccdca - TokenCache: 17.38778833 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:52: 83650553-ec84-4f79-83ca-673383fccdca - 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/27/2018 13:42:52: 83650553-ec84-4f79-83ca-673383fccdca - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1?api-version=2018-08-01
Headers:
x-ms-client-request-id : 7aa24e59-ea2b-4ed3-b23f-c36d00f6932f
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : 52e13ef5-85f2-4f87-97ee-291676c94dab
x-ms-correlation-request-id : a0fd1f8d-7523-43a0-b3a6-71a3e6bc36f8
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
ETag : W/"896a96fd-0c47-4521-ac89-d8ec6938a71f"
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11984
x-ms-routing-request-id : FRANCESOUTH:20180927T134252Z:a0fd1f8d-7523-43a0-b3a6-71a3e6bc36f8
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:42:51 GMT
Body:
{
"name": "myVnet1",
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1",
"etag": "W/\"896a96fd-0c47-4521-ac89-d8ec6938a71f\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "825f57e0-0302-4178-aa43-d71e54a0a628",
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: AzureQoSEvent: CommandName - New-AzureRmVirtualNetwork; IsSuccess - True; Duration - 00:00:15.6904019; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 15:42:53 - NewAzureVirtualNetworkCommand end processing.
DEBUG: 15:42:53 - NewAzureVirtualNetworkCommand end processing.
DEBUG: 15:42:53 - NewAzureVirtualNetworkCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 15:42:53 - using account id 'username'...
WARNUNG: Breaking changes in the cmdlet 'New-AzureRmVirtualNetwork' :
WARNUNG: - "The output type 'Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork' is changing"
- The following properties in the output type are being deprecated :
'EnableVmProtection'
DEBUG: [Common.Authentication]: Authenticating using Account: 'username', environment: 'AzureCloud', tenant: 'c97d91eb-9931-4447-80be-d3e4e3e95cd5'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: 1be40881-50ee-4549-9baf-7702d4100fb8 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:53: 1be40881-50ee-4549-9baf-7702d4100fb8 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: 1be40881-50ee-4549-9baf-7702d4100fb8 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:53: 1be40881-50ee-4549-9baf-7702d4100fb8 - TokenCache: 17.3713639516667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: 1be40881-50ee-4549-9baf-7702d4100fb8 - 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/27/2018 13:42:53: 1be40881-50ee-4549-9baf-7702d4100fb8 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: f6b052f2-7c48-40bf-b06c-87bf45eb6b66 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:53: f6b052f2-7c48-40bf-b06c-87bf45eb6b66 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: f6b052f2-7c48-40bf-b06c-87bf45eb6b66 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:53: f6b052f2-7c48-40bf-b06c-87bf45eb6b66 - TokenCache: 17.371103605 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: f6b052f2-7c48-40bf-b06c-87bf45eb6b66 - 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/27/2018 13:42:53: f6b052f2-7c48-40bf-b06c-87bf45eb6b66 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2?api-version=2018-08-01
Headers:
x-ms-client-request-id : 32b785a9-8d1b-4ef0-930d-fad5ad6140f8
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-request-id : 5c0a4d33-b012-48d9-a1f2-4a0603849b74
x-ms-correlation-request-id : 5c0a4d33-b012-48d9-a1f2-4a0603849b74
x-ms-routing-request-id : FRANCESOUTH:20180927T134253Z:5c0a4d33-b012-48d9-a1f2-4a0603849b74
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Thu, 27 Sep 2018 13:42:53 GMT
Body:
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Network/virtualNetworks/myVnet2' under resource group 'myResourceGroup' was not found."
}
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: 1fbe1a02-bc68-44ed-be7b-2bfdce427c26 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:53: 1fbe1a02-bc68-44ed-be7b-2bfdce427c26 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: 1fbe1a02-bc68-44ed-be7b-2bfdce427c26 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:42:53: 1fbe1a02-bc68-44ed-be7b-2bfdce427c26 - TokenCache: 17.3619647166667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:42:53: 1fbe1a02-bc68-44ed-be7b-2bfdce427c26 - 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/27/2018 13:42:53: 1fbe1a02-bc68-44ed-be7b-2bfdce427c26 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2?api-version=2018-08-01
Headers:
x-ms-client-request-id : 8b12e63d-1821-42fd-8754-23d4817f56e6
accept-language : en-US
Body:
{
"properties": {
"addressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false
},
"location": "westeurope"
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Created
Headers:
Pragma : no-cache
Retry-After : 3
x-ms-request-id : 84e9a4fb-27ab-4956-a14a-40f0adc894cb
Azure-AsyncOperation : https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/providers/Microsoft.Network/locations/westeurope/operations/84e9a4fb-27ab-4956-a14a-40f0adc
894cb?api-version=2018-08-01
x-ms-correlation-request-id : 626793f2-9580-47b9-ba79-4339d0d071ee
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1197
x-ms-routing-request-id : FRANCESOUTH:20180927T134256Z:626793f2-9580-47b9-ba79-4339d0d071ee
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:42:56 GMT
Body:
{
"name": "myVnet2",
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2",
"etag": "W/\"807a98b5-2faa-47b0-a618-e92b950d2e04\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "88102152-83f3-4a4e-92f9-21f90a8bd365",
"addressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:06: aa1d96a0-f417-4f25-bceb-17db33c9e7d8 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:06: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:06: aa1d96a0-f417-4f25-bceb-17db33c9e7d8 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:06: aa1d96a0-f417-4f25-bceb-17db33c9e7d8 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:06: aa1d96a0-f417-4f25-bceb-17db33c9e7d8 - TokenCache: 17.1524810966667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:06: aa1d96a0-f417-4f25-bceb-17db33c9e7d8 - 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/27/2018 13:43:06: aa1d96a0-f417-4f25-bceb-17db33c9e7d8 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/providers/Microsoft.Network/locations/westeurope/operations/84e9a4fb-27ab-4956-a14a-40f0adc894cb?api-version=2018-08-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
Retry-After : 10
x-ms-request-id : ce7b3323-5d0b-4283-89d2-6adb21eda0a9
x-ms-correlation-request-id : 71b7e080-ed93-47a6-8ecd-c85d7cd1d2a4
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11988
x-ms-routing-request-id : FRANCESOUTH:20180927T134306Z:71b7e080-ed93-47a6-8ecd-c85d7cd1d2a4
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:43:06 GMT
Body:
{
"status": "InProgress"
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:16: a9a56a73-de1b-4fcb-ac69-51f789029691 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:16: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:16: a9a56a73-de1b-4fcb-ac69-51f789029691 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:16: a9a56a73-de1b-4fcb-ac69-51f789029691 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:16: a9a56a73-de1b-4fcb-ac69-51f789029691 - TokenCache: 16.979537425 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:16: a9a56a73-de1b-4fcb-ac69-51f789029691 - 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/27/2018 13:43:16: a9a56a73-de1b-4fcb-ac69-51f789029691 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/providers/Microsoft.Network/locations/westeurope/operations/84e9a4fb-27ab-4956-a14a-40f0adc894cb?api-version=2018-08-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : b1f5f35e-4c8c-44c0-bd4a-076696155a95
x-ms-correlation-request-id : 56ea1c81-c4e7-4135-bce0-1b582fbf041b
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11987
x-ms-routing-request-id : FRANCESOUTH:20180927T134317Z:56ea1c81-c4e7-4135-bce0-1b582fbf041b
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:43:16 GMT
Body:
{
"status": "Succeeded"
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: 768f4b97-cce5-4787-989a-3ff6feb1d575 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:17: 768f4b97-cce5-4787-989a-3ff6feb1d575 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: 768f4b97-cce5-4787-989a-3ff6feb1d575 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:17: 768f4b97-cce5-4787-989a-3ff6feb1d575 - TokenCache: 16.9743656166667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: 768f4b97-cce5-4787-989a-3ff6feb1d575 - 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/27/2018 13:43:17: 768f4b97-cce5-4787-989a-3ff6feb1d575 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2?api-version=2018-08-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : 96c7fe5a-b3b5-455c-92ba-bb99224ec2fc
x-ms-correlation-request-id : e86e2cbc-b83d-4b74-bea8-5a6bd13cbfe5
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
ETag : W/"cbda879d-524b-40de-8044-b9e3179fe784"
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11986
x-ms-routing-request-id : FRANCESOUTH:20180927T134317Z:e86e2cbc-b83d-4b74-bea8-5a6bd13cbfe5
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:43:17 GMT
Body:
{
"name": "myVnet2",
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2",
"etag": "W/\"cbda879d-524b-40de-8044-b9e3179fe784\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "88102152-83f3-4a4e-92f9-21f90a8bd365",
"addressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: 373f9eec-fb1b-4ab5-9c53-e2ba71736502 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:17: 373f9eec-fb1b-4ab5-9c53-e2ba71736502 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: 373f9eec-fb1b-4ab5-9c53-e2ba71736502 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:17: 373f9eec-fb1b-4ab5-9c53-e2ba71736502 - TokenCache: 16.96993859 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:17: 373f9eec-fb1b-4ab5-9c53-e2ba71736502 - 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/27/2018 13:43:17: 373f9eec-fb1b-4ab5-9c53-e2ba71736502 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2?api-version=2018-08-01
Headers:
x-ms-client-request-id : 2a95e581-43e3-40f6-a17c-5112ce37299e
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-request-id : 2f7d0eb7-890b-4e34-850d-03cf08df729b
x-ms-correlation-request-id : 449a9a95-9092-4a0d-941d-03cfb62b9a1d
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
ETag : W/"cbda879d-524b-40de-8044-b9e3179fe784"
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11985
x-ms-routing-request-id : FRANCESOUTH:20180927T134317Z:449a9a95-9092-4a0d-941d-03cfb62b9a1d
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:43:17 GMT
Body:
{
"name": "myVnet2",
"id": "/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2",
"etag": "W/\"cbda879d-524b-40de-8044-b9e3179fe784\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "88102152-83f3-4a4e-92f9-21f90a8bd365",
"addressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"subnets": [],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: AzureQoSEvent: CommandName - New-AzureRmVirtualNetwork; IsSuccess - True; Duration - 00:00:24.4827800; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 15:43:18 - NewAzureVirtualNetworkCommand end processing.
DEBUG: 15:43:18 - NewAzureVirtualNetworkCommand end processing.
DEBUG: 15:43:18 - AddAzureVirtualNetworkPeeringCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 15:43:18 - using account id 'username'...
WARNUNG: Breaking changes in the cmdlet 'Add-AzureRmVirtualNetworkPeering' :
WARNUNG: - The parameter : 'VirtualNetwork' is changing.
WARNUNG: Change description : The EnableVMProtection property for the parameter Virtualnetwork is no longer supported. Setting this property has no impact. This property will be removed in a future rele
ase. Please remove it from your scripts
DEBUG: [Common.Authentication]: Authenticating using Account: 'username', environment: 'AzureCloud', tenant: 'c97d91eb-9931-4447-80be-d3e4e3e95cd5'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: 59b8acf0-3230-49df-8e36-0da9b0ef8cb7 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:18: 59b8acf0-3230-49df-8e36-0da9b0ef8cb7 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: 59b8acf0-3230-49df-8e36-0da9b0ef8cb7 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:18: 59b8acf0-3230-49df-8e36-0da9b0ef8cb7 - TokenCache: 16.954704875 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: 59b8acf0-3230-49df-8e36-0da9b0ef8cb7 - 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/27/2018 13:43:18: 59b8acf0-3230-49df-8e36-0da9b0ef8cb7 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: 6bce54d3-e5a1-4d8a-b2b6-a5637c9461db - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:18: 6bce54d3-e5a1-4d8a-b2b6-a5637c9461db - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: 6bce54d3-e5a1-4d8a-b2b6-a5637c9461db - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:18: 6bce54d3-e5a1-4d8a-b2b6-a5637c9461db - TokenCache: 16.9544445483333 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:18: 6bce54d3-e5a1-4d8a-b2b6-a5637c9461db - 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/27/2018 13:43:18: 6bce54d3-e5a1-4d8a-b2b6-a5637c9461db - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1/virtualNetworkPeerings/myVnet1ToMyVnet2?
api-version=2018-08-01
Headers:
x-ms-client-request-id : 8243df1a-488d-4d96-9f29-746b139fe601
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Pragma : no-cache
x-ms-request-id : 037165e2-7963-41d6-9c09-4d7ca8766836
x-ms-correlation-request-id : 3b0b5d8f-4de3-4206-8105-9e041ed7c73b
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11979
x-ms-routing-request-id : FRANCESOUTH:20180927T134318Z:3b0b5d8f-4de3-4206-8105-9e041ed7c73b
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:43:18 GMT
Body:
{
"error": {
"code": "NotFound",
"message": "Resource /subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet1/virtualNetworkPeerings/myVnet1ToMyVnet2 not
found.",
"details": []
}
}
Add-AzureRmVirtualNetworkPeering : Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
In Zeile:16 Zeichen:1
+ Add-AzureRmVirtualNetworkPeering -Name 'myVnet1ToMyVnet2' -VirtualNet ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Add-AzureRmVirtualNetworkPeering], NullReferenceException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.AddAzureVirtualNetworkPeeringCommand
DEBUG: AzureQoSEvent: CommandName - Add-AzureRmVirtualNetworkPeering; IsSuccess - False; Duration - 00:00:00.6313077; Exception - System.NullReferenceException: Der Objektverweis wurde nicht auf eine Obj
ektinstanz festgelegt.
bei Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureSubscriptionExtensions.GetId(IAzureSubscription subscription)
bei Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.<>c.<CheckAccessToSubscriptions>b__11_0(IAzureSubscription s)
bei System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
bei Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.CheckAccessToSubscriptions(IEnumerable`1 subscriptions)
bei Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.GetAuxilaryAuthHeaderFromResourceIds(List`1 resourceIds)
bei Microsoft.Azure.Commands.Network.AddAzureVirtualNetworkPeeringCommand.AddVirtualNetworkPeering()
bei Microsoft.Azure.Commands.Network.AddAzureVirtualNetworkPeeringCommand.Execute()
bei Microsoft.Azure.Commands.Network.NetworkBaseCmdlet.ExecuteCmdlet()
bei Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DEBUG: Finish sending metric.
DEBUG: 15:43:19 - AddAzureVirtualNetworkPeeringCommand end processing.
DEBUG: 15:43:19 - AddAzureVirtualNetworkPeeringCommand end processing.
DEBUG: 15:43:19 - AddAzureVirtualNetworkPeeringCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 15:43:19 - using account id 'username'...
WARNUNG: Breaking changes in the cmdlet 'Add-AzureRmVirtualNetworkPeering' :
WARNUNG: - The parameter : 'VirtualNetwork' is changing.
WARNUNG: Change description : The EnableVMProtection property for the parameter Virtualnetwork is no longer supported. Setting this property has no impact. This property will be removed in a future rele
ase. Please remove it from your scripts
DEBUG: [Common.Authentication]: Authenticating using Account: 'username', environment: 'AzureCloud', tenant: 'c97d91eb-9931-4447-80be-d3e4e3e95cd5'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: 66b9b45f-2205-44e9-9b83-e33d559f24b4 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:19: 66b9b45f-2205-44e9-9b83-e33d559f24b4 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: 66b9b45f-2205-44e9-9b83-e33d559f24b4 - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:19: 66b9b45f-2205-44e9-9b83-e33d559f24b4 - TokenCache: 16.9335306666667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: 66b9b45f-2205-44e9-9b83-e33d559f24b4 - 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/27/2018 13:43:19: 66b9b45f-2205-44e9-9b83-e33d559f24b4 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: b6f8b390-5a50-4749-81ad-50c97a47999b - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/c97d91eb-9931-4447-80be-d3e4e3e95cd5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (12 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: - TokenCache: Deserialized 12 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:19: b6f8b390-5a50-4749-81ad-50c97a47999b - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: b6f8b390-5a50-4749-81ad-50c97a47999b - TokenCache: An item matching the requested resource was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/27/2018 13:43:19: b6f8b390-5a50-4749-81ad-50c97a47999b - TokenCache: 16.9332705516667 minutes left until token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/27/2018 13:43:19: b6f8b390-5a50-4749-81ad-50c97a47999b - 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/27/2018 13:43:19: b6f8b390-5a50-4749-81ad-50c97a47999b - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
Access Token Hash: Xr/e3tFDiKHRdTUns12YY4k5jZbWb1tpVTgMPKuooVY=
Refresh Token Hash: 0HAU/jUUaHjolfwz5HhVXYKs6g+LQIdzh3P706rFYTA=
Expiration Time: 09/27/2018 14:00:15 +00:00
User Hash: 9pFYC0nCxxsWTcNXn0PKME6r7INUbHW3sA88rJZcGS0=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2/virtualNetworkPeerings/myVnet2ToMyVnet1?
api-version=2018-08-01
Headers:
x-ms-client-request-id : 5b3342d9-3b92-4457-b320-0f12015ee065
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Pragma : no-cache
x-ms-request-id : db838849-9514-4005-8df6-9cd3e8e5529e
x-ms-correlation-request-id : d7a5d14c-6f0f-4e42-b8b7-b42b2f30bed3
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11988
x-ms-routing-request-id : FRANCESOUTH:20180927T134320Z:d7a5d14c-6f0f-4e42-b8b7-b42b2f30bed3
X-Content-Type-Options : nosniff
Date : Thu, 27 Sep 2018 13:43:20 GMT
Body:
{
"error": {
"code": "NotFound",
"message": "Resource /subscriptions/209ad085-21ac-4897-8690-4a5456042696/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet2/virtualNetworkPeerings/myVnet2ToMyVnet1 not
found.",
"details": []
}
}
Add-AzureRmVirtualNetworkPeering : Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
In Zeile:19 Zeichen:1
+ Add-AzureRmVirtualNetworkPeering -Name 'myVnet2ToMyVnet1' -VirtualNet ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Add-AzureRmVirtualNetworkPeering], NullReferenceException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.AddAzureVirtualNetworkPeeringCommand
DEBUG: AzureQoSEvent: CommandName - Add-AzureRmVirtualNetworkPeering; IsSuccess - False; Duration - 00:00:00.7766001; Exception - System.NullReferenceException: Der Objektverweis wurde nicht auf eine Obj
ektinstanz festgelegt.
bei Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureSubscriptionExtensions.GetId(IAzureSubscription subscription)
bei Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.<>c.<CheckAccessToSubscriptions>b__11_0(IAzureSubscription s)
bei System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
bei Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.CheckAccessToSubscriptions(IEnumerable`1 subscriptions)
bei Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.GetAuxilaryAuthHeaderFromResourceIds(List`1 resourceIds)
bei Microsoft.Azure.Commands.Network.AddAzureVirtualNetworkPeeringCommand.AddVirtualNetworkPeering()
bei Microsoft.Azure.Commands.Network.AddAzureVirtualNetworkPeeringCommand.Execute()
bei Microsoft.Azure.Commands.Network.NetworkBaseCmdlet.ExecuteCmdlet()
bei Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DEBUG: Finish sending metric.
DEBUG: 15:43:20 - AddAzureVirtualNetworkPeeringCommand end processing.
DEBUG: 15:43:20 - AddAzureVirtualNetworkPeeringCommand end processing.
@avijitgupta @chandrasekarsrinivasan would you mind taking a look at this issue?
I am not sure if this is the same issue. I am running the lab of 20533 Lab2 and got this message.
PS C:\WINDOWS\System32> $rg = New-AzureRMResourceGroup -Name '20533E0204-LabRG' -Location 'West US'
PS C:\WINDOWS\System32> $vnet = New-AzureRmVirtualNetwork -ResourceGroupName $rg.ResourceGroupName -Name '20533E0204-vnet' -AddressPrefix '10.11.0.0/16' -Location $rg.Location
WARNING: Breaking changes in the cmdlet 'New-AzureRmVirtualNetwork' : WARNING: - "The output type 'Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork' is changing"
- The following properties in the output type are being deprecated : 'EnableVmProtection'
Same behavior after updating to
AzureRM.Compute 6.7.0
AzureRM.Network 6.9.0
AzureRM.Resources 6.6.0
az cli works. https://docs.microsoft.com/en-us/cli/azure/network/vnet/peering?view=azure-cli-latest#az-network-vnet-peering-create
I am also seeing this issue.
Same issue peering across AAD Tenants. If I wait a day after the network is created, then retry peering, it works. So sounds like something is delayed on Microsoft's end.
Assigning to Amol. @Am018
I just tried running all the commands and I couldn't repro the issue. However my AzureRM.Network module version is 6.9.1 instead of 6.8.0 as reported here. Can you try upgrading the AzureRM.Network module and see if you continue to face this issue?
I have version 6.9.1 installed and receive the same error trying to peer two vnet's. Mine are in separate subscriptions, but it's the same error. I am able to perform peering via the portal (didn't try az cli yet).
I just tried this again today on multiple separate subscriptions and it worked, has someone fixed something? Otherwise the issue may be intermittent.
I just tried again and it's not working for me still. So it may be intermittent.
The AzureRM module has still the same issue also in version 6.13. As AzureRM will not get any new features in the future, I switched to Az module and as expected it works perfectly.
https://docs.microsoft.com/en-us/powershell/azure/new-azureps-module-az?view=azps-1.0.0
Confirmed the issue is intermittent. I'm getting roughly a 50% success rate depending on the day.
I am using Az.Network 1.0.0 module and get the same error "The object reference was not set to an instance of the object". However the error message from the api is slightly different.
PowerShell:
$vnetWebAuEast = Get-AzVirtualNetwork -Name web-aueast-vnet -ResourceGroupName poc-web-rg
$vnetHubAuEast = Get-AzVirtualNetwork -Name hub-aueast-vnet -ResourceGroupName poc-infra-rg
#Verified that vnets variables are correctly populated with the vnet object
Add-AzVirtualNetworkPeering -Name 'HubW-to-Web-peering' -VirtualNetwork $vnetHubAuEast
-RemoteVirtualNetworkId $vnetWebAuEast.Id -AllowForwardedTraffic -AllowGatewayTransit
-Debug
DEBUG: 1:05:22 PM - AddAzureVirtualNetworkPeeringCommand begin processing with Parame terSet '__AllParameterSets'. DEBUG: 1:05:24 PM - using account id '
'... DEBUG: [Common.Authentication]: Authenticating using Account: ' ', environment: 'AzureCloud', tenant: ' ' DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET
Absolute Uri: https://management.azure.com/subscriptions/
/resou rceGroups/poc-infra-rg/providers/Microsoft.Network/virtualNetworks/hub-aueast-vnet/vi rtualNetworkPeerings/HubW-to-Web-peering?api-version=2018-10-01 Headers: x-ms-client-request-id : 23ea96c3-ad6f-4f18-980a-f8e1e3037fc1 accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code: NotFound
Headers: Pragma : no-cache x-ms-request-id : 278e2a8b-60f1-4fe9-957a-7a66ed73abf2 x-ms-correlation-request-id : 4ac113c6-6c4d-4cdb-8efe-9dcd51b4c7b6 Strict-Transport-Security : max-age=31536000; includeSubDomains Cache-Control : no-cache Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 x-ms-ratelimit-remaining-subscription-reads: 11998 x-ms-routing-request-id : AUSTRALIAEAST:20190125T020524Z:4ac113c6-6c4d-4cdb-8ef e-9dcd51b4c7b6 X-Content-Type-Options : nosniff Date : Fri, 25 Jan 2019 02:05:24 GMT
Body: { "error": { "code": "NotFound", "message": "Resource /subscriptions/
/resource Groups/poc-infra-rg/providers/Microsoft.Network/virtualNetworks/hub-aueast-vnet/virtu alNetworkPeerings/HubW-to-Web-peering not found.", "details": [] } } Add-AzVirtualNetworkPeering : Object reference not set to an instance of an object. At line:3 char:1
- Add-AzVirtualNetworkPeering -Name 'HubW-to-Web-peering' -VirtualNetwo ...
+ CategoryInfo : CloseError: (:) [Add-AzVirtualNetworkPeering], NullRe ferenceException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.AddAzureVirtualNetwo rkPeeringCommand
@tobias-geiser, @marknettle, @asmith984, @aconn21, @woodrum, would you mind updating to the latest Az and checking the repro, so we could get some stats and close issue/continue investigation depending on the results. Currently I can't repro this using the latest Az version. Basing on the fact that issue is intermittent, I used script like this:
function Test-Peering()
{
$rgName='myResourceGroup'
New-AzResourceGroup -Name $rgName -Location westcentralus
$vnet1 = New-AzVirtualNetwork -ResourceGroupName $rgName -Name 'myVnet1' -AddressPrefix '10.0.0.0/16' -Location westeurope
$vnet2 = New-AzVirtualNetwork -ResourceGroupName $rgName -Name 'myVnet2' -AddressPrefix '10.1.0.0/16' -Location westeurope
Add-AzVirtualNetworkPeering -Name 'myVnet1ToMyVnet2' -VirtualNetwork $vnet1 -RemoteVirtualNetworkId $vnet2.Id
Add-AzVirtualNetworkPeering -Name 'myVnet2ToMyVnet1' -VirtualNetwork $vnet2 -RemoteVirtualNetworkId $vnet1.Id
Remove-AzResourceGroup -Name $rgName -Force
}
for($i = 0; $i -lt 10; $i++)
{
Test-Peering
}
@kutluomeroglu, could you please try updating to the latest Az version and re-check repro? I was able to repro the issue on the recent version and cannot repro on the current, so this seems to be fixed.
@EvgenyAgafonchikov, I have updated the Az modules, Az.Network is now 1.1.0 and add-azvirtualnetworkpeering worked for me for the first time. Seems like it might be fixed.
@kutluomeroglu, thanks for checking this. Closing for now as "no repro/fixed", feel free to reopen if the repro would be found.