- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.1k
 
Closed
Labels
Monitor - ApplicationInsightsbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Description
Description
When pipe Get-AzApplicationInsights to Get-AzApplicationInsightsLinkedStorageAccount or using -InputObject, Get-AzApplicationInsightsLinkedStorageAccount complain resourceGroupName cannot be null.
Steps to reproduce
$ai=Get-AzApplicationInsights -ResourceGroupName MyRG -Name MyApp
Get-AzApplicationInsightsLinkedStorageAccount -InputObject $aiOr
Get-AzApplicationInsights -ResourceGroupName MyRG -Name MyApp |  Get-AzApplicationInsightsLinkedStorageAccount Environment data
Name                           Value                                                                                                                                                                                                                             
----                           -----                                                                                                                                                                                                                             
PSVersion                      5.1.19041.906                                                                                                                                                                                                                     
PSEdition                      Desktop                                                                                                                                                                                                                           
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                                                           
BuildVersion                   10.0.19041.906                                                                                                                                                                                                                    
CLRVersion                     4.0.30319.42000                                                                                                                                                                                                                   
WSManStackVersion              3.0                                                                                                                                                                                                                               
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                                               
SerializationVersion           1.1.0.1                      
Module versions
ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                       
---------- -------    ----                                ----------------                                                                                                                                                                                       
Manifest   1.13.0     7Zip4Powershell                     {Expand-7Zip, Compress-7Zip, Get-7Zip, Get-7ZipInformation}                                                                                                                                            
Script     2.2.8      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}                                                                                            
Script     1.1.1      Az.Advisor                          {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration...}                                                                          
Script     2.0.2      Az.Aks                              {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential...}                                                                                                                   
Script     1.1.4      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...}                                                                  
Script     2.2.0      Az.ApiManagement                    {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion...}                                                                    
Script     1.0.0      Az.AppConfiguration                 {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore, New-AzAppConfigurationStoreKey...}                                                                          
Script     1.1.0      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Update-AzApplicationInsights...}                                                                                  
Script     1.6.0      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...}                                                 
Script     3.1.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}                                                                                                              
Script     2.0.0      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}                                                                                                       
Script     1.6.0      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}                                                                                                                   
Script     1.8.0      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType...}                                                          
Script     4.11.0     Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}                                                                                                  
Script     1.0.3      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}                                                                                                      
Script     2.2.2      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}                                                                                          
Script     1.1.0      Az.CosmosDB                         {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDatabase, Get-AzCosmosDBSqlDatabaseThroughput...}                                                                  
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...}                                                                                                
Script     1.1.0      Az.Databricks                       {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-AzDatabricksWorkspace...}                                                                                    
Script     1.11.5     Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}                                                                                                          
Script     1.0.2      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential...}                                
Script     1.3.0      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...}                                           
Script     1.0.0      Az.DataShare                        {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare...}                                                                                                        
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource...}                                     
Script     2.1.1      Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplicationGroup...}                                                                                               
Script     1.0.2      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy...}                                                                                    
Script     1.1.2      Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}                                                                                                              
Script     1.3.0      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}                                                                                                         
Script     1.7.2      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}                                                                                             
Script     1.7.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}                                                                                                                             
Script     2.0.0      Az.Functions                        {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting...}                                                                                            
Script     4.2.1      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}                                                                        
Script     1.3.1      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}                                                                                
Script     2.7.3      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}                                                                                                 
Script     3.4.2      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}                                                                  
Script     1.0.1      Az.Kusto                            {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster...}                                                                   
Script     1.5.0      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl...}                                              
Script     1.1.3      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}                                                                      
Script     1.1.0      Az.Maintenance                      {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenanceUpdate...}                                                                                         
Script     2.0.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition...}                                                             
Script     1.0.2      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}                                                                                                                                                       
Script     1.1.1      Az.Media                            {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability...}                                                                                   
Script     1.0.1      Az.Migrate                          {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicationFabric...}                                                                                             
Script     2.5.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}                                                                                                                       
Script     4.7.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationC...
Script     1.1.1      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...}                                                                   
Script     2.3.0      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsIISLogCollec...
Script     1.4.1      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}                                                                                                           
Script     1.1.2      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace...}                                                          
Script     1.0.3      Az.PrivateDns                       {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...}                                                                                                         
Script     3.5.0      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...}                                                           
Script     1.4.0      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}                                                                     
Script     1.0.0      Az.RedisEnterpriseCache             {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase, Get-AzRedisEnterpriseCacheKey...}                                                                      
Script     1.0.3      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}                                                                                                         
Script     1.4.1      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}                                                                                     
Script     1.2.0      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}                                                                                                                                  
Script     1.1.0      Az.SqlVirtualMachine                {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...}                                                                                                                                          
Script     1.3.0      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Set-AzStorageSyncService...}                                                                              
Script     1.0.1      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamAnalyticsFunction...}                                                    
Script     1.0.0      Az.Support                          {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportTicketCommunication...}                                                                                   
Script     1.0.4      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeaderFromProfile...}            
Manifest   2.0.3      AzTable                             {Add-AzTableRow, Get-AzTableRow, Get-AzTableRowAll, Get-AzTableRowByPartitionKeyRowKey...}                                                                                                             
Binary     2.0.2.106  AzureAD                             {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...}                                                                         
Manifest   2.4.1.0    cChoco                                                                                                                                                                                                                                     
Script     1.1.0.1    DatabricksPS                        {Get-DatabricksClusterPolicy, Add-DatabricksClusterPolicy, Remove-DatabricksClusterPolicy, Update-DatabricksClusterPolicy...}                                                                          
Binary     1.0.27     LogicAppTemplate                    {Get-EmptyParameterTemplate, Get-CustomConnectorTemplate, Get-IntegrationAccountSchemaTemplate, Get-IntegrationAccountMapTemplate...}                                                                  
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}                                                                                                                                                  
Manifest   1.0.867    MicrosoftPowerBIMgmt                                                                                                                                                                                                                       
Binary     1.0.867    MicrosoftPowerBIMgmt.Admin          {Add-PowerBIEncryptionKey, Get-PowerBIEncryptionKey, Get-PowerBIWorkspaceEncryptionStatus, Switch-PowerBIEncryptionKey...}                                                                             
Binary     1.0.867    MicrosoftPowerBIMgmt.Capacities     Get-PowerBICapacity                                                                                                                                                                                    
Binary     1.0.867    MicrosoftPowerBIMgmt.Data           {Add-PowerBIDataset, Set-PowerBITable, New-PowerBIDataset, New-PowerBITable...}                                                                                                                        
Binary     1.0.867    MicrosoftPowerBIMgmt.Profile        {Connect-PowerBIServiceAccount, Disconnect-PowerBIServiceAccount, Invoke-PowerBIRestMethod, Get-PowerBIAccessToken...}                                                                                 
Binary     1.0.867    MicrosoftPowerBIMgmt.Reports        {Get-PowerBIReport, New-PowerBIReport, Export-PowerBIReport, Get-PowerBIDashboard...}                                                                                                                  
Binary     1.0.867    MicrosoftPowerBIMgmt.Workspaces     {Get-PowerBIWorkspace, Get-PowerBIWorkspaceMigrationStatus, Add-PowerBIWorkspaceUser, Remove-PowerBIWorkspaceUser...}                                                                                  
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}                                                                                                                                 
Script     4.10.1     Pester                              {Describe, Context, It, Should...}                                                                                                                                                                     
Script     3.4.0      Pester                              {Describe, Context, It, Should...}                                                                                                                                                                     
Script     2.2.5      PowerShellGet                       {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...}                                                                                                                                  
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}                                                                                                                                           
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}                                                                                             
Script     1.19.1     PSScriptAnalyzer                    {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}                                                                                                                                      
Binary     2.2.0.2    PSWindowsUpdate                     {Add-WUServiceManager, Enable-WURemoting, Get-WindowsUpdate, Get-WUApiVersion...}                                                                                                                      
Manifest   1.2.0      SChannelDsc                         {Cipher, CipherSuites, Hash, KeyExchangeAlgorithm...}                                                                                                                                                  
Manifest   2.10.0.0   SecurityPolicyDsc                                                                                                                                                                                                                          
Script     21.1.18229 SqlServer                           {Add-RoleMember, Add-SqlAvailabilityDatabase, Add-SqlAvailabilityGroupListenerStaticIp, Add-SqlAzureAuthenticationContext...}                                                                          
Binary     2.0.3      ThreadJob                           Start-ThreadJob                                                                                                                                                                                        
Debug output
DÉBOGUER : 10:49:01 - GetApplicationInsightsCommand begin processing with ParameterSet 'ComponentNameParameterSet'.
DÉBOGUER : 10:49:01 - using account id 'xxxxx'...
DÉBOGUER : 10:49:01 - GetApplicationInsightsLinkedStorageAccount begin processing with ParameterSet 'ByInputObjectParameterSet'.
DÉBOGUER : 10:49:01 - using account id 'xxxxx'...
DÉBOGUER : [Common.Authentication]: Authenticating using Account: 'xxxxx', environment: 'AzureCloud', tenant: 'xxxxx'
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxxxx', UserId: 'xxxxx'
DÉBOGUER : ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxxxx/resourceGroups/MyRG/providers/Microsoft.Insights/components/MyApp?api-version=2018-05-01-preview
Headers:
x-ms-client-request-id        : 38dc862d-53bb-4470-a807-2137605aabea
accept-language               : en-US
Body:
DÉBOGUER : ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma                        : no-cache
x-ms-request-id               : 66e527dd-a576-45a8-b838-c035f04f418a
X-Content-Type-Options        : nosniff
Request-Context               : appId=cid-v1:920e14b1-13f3-461a-a4bb-b4fe6f1a4525
Access-Control-Expose-Headers : Request-Context
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11995
x-ms-correlation-request-id   : 123efd10-c91d-4656-a5a2-24519badc52b
x-ms-routing-request-id       : WESTEUROPE:20210428T084901Z:123efd10-c91d-4656-a5a2-24519badc52b
Cache-Control                 : no-cache
Date                          : Wed, 28 Apr 2021 08:49:01 GMT
Server                        : Microsoft-IIS/10.0
X-Powered-By                  : ASP.NET
Body:
{
  "id": "/subscriptions/xxxxx/resourceGroups/MyRG/providers/microsoft.insights/components/MyApp",
  "name": "MyApp",
  "type": "microsoft.insights/components",
  "location": "westeurope",
  "tags": {
    "GABI": "A3332",
    "Organisation": "Digital/DataLab",
    "ICS": "NO",
    "Environnement": "Intégration",
    "DCP": "NO",
    "Creator": "ADC_2004QS",
    "Etat": "Projet"
  },
  "kind": "Web",
  "etag": "\"1e00c4a0-0000-0200-0000-60890f5d0000\"",
  "properties": {
    "Ver": "v2",
    "ApplicationId": "MyApp",
    "AppId": "33cbf4a6-b76b-4d4c-aca6-720518b538ef",
    "Application_Type": "Web",
    "Flow_Type": null,
    "Request_Source": "AzurePowerShell",
    "InstrumentationKey": "xxxx",
    "ConnectionString": "InstrumentationKey=xxxx;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/",
    "Name": "MyApp",
    "CreationDate": "2021-04-28T09:29:51.0941913+02:00",
    "TenantId": "xxxxx",
    "provisioningState": "Succeeded",
    "SamplingPercentage": null,
    "RetentionInDays": 30,
    "Retention": "P30D",
    "WorkspaceResourceId": "/subscriptions/xxxxx/resourcegroups/MyRG/providers/microsoft.operationalinsights/workspaces/loa-grt-sysinfprd-we-dlbi",
    "LaMigrationDate": "2021-04-28T09:31:40.9668724+02:00",
    "IngestionMode": "LogAnalytics",
    "publicNetworkAccessForIngestion": "Enabled",
    "publicNetworkAccessForQuery": "Enabled"
  }
}
DÉBOGUER : [Common.Authentication]: Authenticating using Account: 'xxxxx', environment: 'AzureCloud', tenant: 'xxxxx'
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxxxx', UserId: 'xxxxx'
DÉBOGUER : ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxxxx/resourceGroups/MyRG/providers/Microsoft.Insights/components/MyApp?api-version=2018-05-01-preview
Headers:
x-ms-client-request-id        : 38dc862d-53bb-4470-a807-2137605aabea
accept-language               : en-US
Body:
DÉBOGUER : ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma                        : no-cache
x-ms-request-id               : 66e527dd-a576-45a8-b838-c035f04f418a
X-Content-Type-Options        : nosniff
Request-Context               : appId=cid-v1:920e14b1-13f3-461a-a4bb-b4fe6f1a4525
Access-Control-Expose-Headers : Request-Context
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11995
x-ms-correlation-request-id   : 123efd10-c91d-4656-a5a2-24519badc52b
x-ms-routing-request-id       : WESTEUROPE:20210428T084901Z:123efd10-c91d-4656-a5a2-24519badc52b
Cache-Control                 : no-cache
Date                          : Wed, 28 Apr 2021 08:49:01 GMT
Server                        : Microsoft-IIS/10.0
X-Powered-By                  : ASP.NET
Body:
{
  "id": "/subscriptions/xxxxx/resourceGroups/MyRG/providers/microsoft.insights/components/MyApp",
  "name": "MyApp",
  "type": "microsoft.insights/components",
  "location": "westeurope",
  "tags": {
    "GABI": "A3332",
    "ICS": "NO",
    "Environnement": "Intégration",
    "DCP": "NO",
    "Etat": "Projet"
  },
  "kind": "Web",
  "etag": "\"1e00c4a0-0000-0200-0000-60890f5d0000\"",
  "properties": {
    "Ver": "v2",
    "ApplicationId": "MyApp",
    "AppId": "33cbf4a6-b76b-4d4c-aca6-720518b538ef",
    "Application_Type": "Web",
    "Flow_Type": null,
    "Request_Source": "AzurePowerShell",
    "InstrumentationKey": "xxxx",
    "ConnectionString": "InstrumentationKey=xxxx;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/",
    "Name": "MyApp",
    "CreationDate": "2021-04-28T09:29:51.0941913+02:00",
    "TenantId": "xxxxx",
    "provisioningState": "Succeeded",
    "SamplingPercentage": null,
    "RetentionInDays": 30,
    "Retention": "P30D",
    "WorkspaceResourceId": "/subscriptions/xxxxx/resourcegroups/MyRG/providers/microsoft.operationalinsights/workspaces/Myloa",
    "LaMigrationDate": "2021-04-28T09:31:40.9668724+02:00",
    "IngestionMode": "LogAnalytics",
    "publicNetworkAccessForIngestion": "Enabled",
    "publicNetworkAccessForQuery": "Enabled"
  }
}
DÉBOGUER : [Common.Authentication]: Authenticating using Account: 'xxxxx', environment: 'AzureCloud', tenant: 'xxxxx'
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxxxx', UserId: 'xxxxx'
Get-AzApplicationInsightsLinkedStorageAccount : 'resourceGroupName' cannot be null.
Au caractère Ligne:2 : 103
+ ... grt-sysinfprd-we-dlbi | Get-AzApplicationInsightsLinkedStorageAccount
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError : (:) [Get-AzApplicati...dStorageAccount], ValidationException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ApplicationInsights.ApplicationInsights.GetApplicationInsightsLinkedStorageAccount
 
DÉBOGUER : [Common.Authentication]: Authenticating using Account: 'xxxxx', environment: 'AzureCloud', tenant: 'xxxxx'
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DÉBOGUER : SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-04-28T09:39:47.0000000+00:00
DÉBOGUER : [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxxxx', UserId: 'xxxxx'
DÉBOGUER : AzureQoSEvent: CommandName - Get-AzApplicationInsights; IsSuccess - True; Duration - 00:00:00.3593555;
DÉBOGUER : Finish sending metric.
DÉBOGUER : 10:49:02 - GetApplicationInsightsCommand end processing.
DÉBOGUER : AzureQoSEvent: CommandName - Get-AzApplicationInsightsLinkedStorageAccount; IsSuccess - False; Duration - 00:00:00.8683420;; Exception - Microsoft.Rest.ValidationException: 'resourceGroupName' cannot be null.
   à Microsoft.Azure.Management.ApplicationInsights.Management.ComponentLinkedStorageAccountsOperations.<GetWithHttpMessagesAsync>d__5.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à Microsoft.Azure.Commands.ApplicationInsights.ApplicationInsights.GetApplicationInsightsLinkedStorageAccount.ExecuteCmdlet()
   à Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DÉBOGUER : Finish sending metric.
DÉBOGUER : 10:49:02 - GetApplicationInsightsLinkedStorageAccount end processing.
Error output
Message        : 'resourceGroupName' cannot be null.
StackTrace     :    à Microsoft.Azure.Management.ApplicationInsights.Management.ComponentLinkedStorageAccountsOperations.<GetWithHttpMessagesAsync>d__5.MoveNext()
                 --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
                    à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    à Microsoft.Azure.Commands.ApplicationInsights.ApplicationInsights.GetApplicationInsightsLinkedStorageAccount.ExecuteCmdlet()
                    à Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : Microsoft.Rest.ValidationException
InvocationInfo : {Get-AzApplicationInsightsLinkedStorageAccount}
Line           : Get-AzApplicationInsights -ResourceGroupNameMyRG -Name MyApp | Get-AzApplicationInsightsLinkedStorageAccount
Position       : Au caractère Ligne:2 : 103
                 + ... MyRG | Get-AzApplicationInsightsLinkedStorageAccount
                 + 
Metadata
Metadata
Assignees
Labels
Monitor - ApplicationInsightsbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that