properties are shown as null when query microsoft.insights resources
See original GitHub issueDescription
When I run az resource list --namespace microsoft.insights --resource-type components
I get the list of Application Insights components. Json field properties
is shown as null
for them:
{
"id": "/subscriptions/01f5dafd-52e6-4115-b012-803e14712153/resourceGroups/metricstest/providers/microsoft.insights/components/metricstest",
"identity": null,
"kind": "web",
"location": "eastus",
"managedBy": null,
"name": "metricstest",
"plan": null,
"properties": null,
"resourceGroup": "metricstest",
"sku": null,
"tags": {},
"type": "microsoft.insights/components"
},
Actual properties looks like this:
{
"id": "/subscriptions/01f5dafd-52e6-4115-b012-803e14712153/resourceGroups/MetricsTest/providers/microsoft.insights/components/metricstest",
"name": "metricstest",
"type": "microsoft.insights/components",
"location": "East US",
"tags": {},
"kind": "web",
"etag": "\"02001b81-0000-0000-0000-582e73720000\"",
"properties": {
"Ver": "v2",
"ApplicationId": "metricstest",
"AppId": "0c7e8188-1694-46ed-a642-6256073c177f",
"Application_Type": "web",
"Flow_Type": "Redfield",
"Request_Source": "IbizaAIExtension",
"InstrumentationKey": "6f54ba65-5b29-423c-a696-6e93c7fa0c58",
"Name": "metricstest",
"CreationDate": "2016-06-26T17:51:47.3274152+00:00",
"PackageId": null,
"TenantId": "94e37bed-e625-4771-ac40-fd27b8c9f940",
"HockeyAppId": null,
"HockeyAppToken": null,
"provisioningState": "Succeeded",
"SamplingPercentage": null
}
}
Environment summary
Install Method: Just used it from Azure portal:
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here:
sergey@Azure:~$ az --version
azure-cli (2.0.6)
acr (2.0.4)
acs (2.0.6)
appservice (0.1.6)
batch (2.0.4)
cdn (0.0.2)
cloud (2.0.2)
cognitiveservices (0.1.2)
command-modules-nspkg (2.0.0)
component (2.0.4)
configure (2.0.6)
core (2.0.6)
cosmosdb (0.1.6)
dla (0.0.6)
dls (0.0.6)
feedback (2.0.2)
find (0.2.2)
interactive (0.3.2)
iot (0.1.5)
keyvault (2.0.4)
lab (0.0.4)
monitor (0.0.4)
network (2.0.6)
nspkg (3.0.0)
profile (2.0.4)
rdbms (0.0.1)
redis (0.2.3)
resource (2.0.6)
role (2.0.4)
sf (1.0.1)
sql (2.0.3)
storage (2.0.6)
vm (2.0.6)
Python (Linux) 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]
Python location '/usr/bin/python'
OS Version: What OS and version are you using?
Answer here: In-browser on Azure portal.
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: In-browser on Azure portal
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Azure resource graph returns null for a ... - Microsoft Learn
While running the below query I get null on internalDomainNameSuffix, but the same has value on Json view from the resource page overview....
Read more >Null Values - Azure Data Explorer | Microsoft Learn
All scalar data types in Kusto have a special value that represents a missing value. This value is called the null value, or...
Read more >Get resource changes - Azure Resource Graph | Microsoft Learn
View property change details; Query changes at scale across your subscriptions, management group, or tenant. This article shows how to query ...
Read more >isnotnull() - Azure Data Explorer | Microsoft Learn
Returns true if the argument is not null. Deprecated aliases: notnull(). Syntax. isnotnull( [value] ). Example. Kusto
Read more >Diagnose exceptions in web apps with Application Insights
To have this data reported: Install the SDK in your application project. Insert code in your application to call Microsoft.ApplicationInsights.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My first thought was you do something like:
However, that doesn’t work because the resource show command doesn’t accept --ids!
I’ve reached out to the ARM team to see if they have any recommendations on this.
@tjprescott I’d really like to be able to get the list of components and their instrumentation key (which is in properties) in a single query to azure cli. Do you know who can we ask from ARM to return properties when cache is being used?