Missing CLI telemetry data
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
> ### Unmatch telemetry data between CLI and ARM
**Related command**
Az Arcappliance create
**Describe the bug**
Our team is investigating the Arc appliance deployment scenario using various telemetry data. The deployment involves creating a single node k8s cluster on-prem, install various agents in the k8s, and create an ARM resource which represents this k8s cluster running on-prem.
We noticed that not all the ARM requests to create the resource, we can find matching CLI telemetry where the resource creation is sent.
I.e. the expected sequence is:
1. CLI to create ARM resource
2. ARM getting the request to create the resource
And we can find data from #2, but missing from #1
**To Reproduce**
Not seeing CLI telemetry: in [cluster('ddazureclients.kusto.windows.net').database('AzureCli')]
let ['_startTime']=datetime('2022-06-11T16:15:34Z');
let ['_endTime']=datetime('2022-06-14T16:15:34Z');
//let ['_provider']=dynamic(null);
RawEventsAzCli
| where EventTimestamp >= _startTime
| where EventTimestamp <= _endTime
| extend cliVersion = tostring(Properties['context.default.azurecli.extensionname'])
| where RawCommand has "arcappliance run vmware" or
RawCommand has "arcappliance prepare vmware" or
RawCommand has "arcappliance deploy vmware" or
RawCommand has "arcappliance create vmware"
| where AzureSubscriptionId in ("4f74333a-8bc9-4d50-a3f9-d0be5b68c0c5")
//| where cliVersion == "arcappliance@0.2.23"
//| where ActionResult == "None"
| project EventName, EventTimestamp, RawCommand, ActionResult, cliVersion, ResultSummary, EntityType, ExceptionMessage,
Params,Properties, SourceJson, StartTime, EndTime, IsMicrosoftInternal,
AzureSubscriptionId, MacAddressHash, MachineId, CorrelationId, UserId, ClientRequestId, SessionId, EventId
But can see ARM logs: in [cluster('armprod.kusto.windows.net').database('ARMProd')]
HttpIncomingRequests
//| where PreciseTimeStamp > ago(25d) and PreciseTimeStamp < ago(3d)
| where PreciseTimeStamp > datetime(2022-06-12) and PreciseTimeStamp < datetime(2022-06-14)
| where subscriptionId == "4f74333a-8bc9-4d50-a3f9-d0be5b68c0c5"
| where operationName contains "Microsoft.ResourceConnector" and httpMethod != "GET"
**Expected behavior**
CLI telemetry and ARM resource creation should match, since CLI triggers the ARM resource creation.
**Environment summary**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.