Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We are not able to get "extensionSettings" values by using az monitor data-collection rule show in monitor-control-service 1.0.1. #7157

Closed
m-yuka746 opened this issue Jan 7, 2024 · 4 comments · Fixed by #7616
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor needs-team-triage This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@m-yuka746
Copy link

m-yuka746 commented Jan 7, 2024

Describe the bug

Issue
We are not able to get "extensionSettings" values by using az monitor data-collection rule show in monitor-control-service 1.0.1.
Using previous version such as 0.4.1, 0.3.1, we are able to get "extensionSettings".

In addition, using Get-AzDataCollectionRule in Az.Monitor module, we are able to get "extensionSettings".
https://www.powershellgallery.com/packages/Az.Monitor/5.0.0

Question
Is it design changed from monitor-control-service 1.0.1 or bug for az monitor data-collection rule show?
If bug, will the design be changed next release?

Thanks.

Related command

az monitor data-collection rule show

Errors

No error

Issue script & Debug output

using monitor-control-service 1.0.1, extensionSettings is null.
az monitor data-collection rule show --resource-group 'defaultresourcegroup-ejp' --name 'ct-dcr-1622755568'

{
  "dataFlows": [
    {
      "destinations": [
        "Microsoft-CT-Dest"
      ],
      "streams": [
        "Microsoft-ConfigurationChange",
        "Microsoft-ConfigurationChangeV2",
        "Microsoft-ConfigurationData"
      ]
    }
  ],
  "dataSources": {
    "extensions": [
      {
        "extensionName": "ChangeTracking-Windows",
        **"extensionSettings": {},**
        "name": "CTDataSource-Windows",
        "streams": [
          "Microsoft-ConfigurationChange",
          "Microsoft-ConfigurationChangeV2",
          "Microsoft-ConfigurationData"
        ]
      },
      {
        "extensionName": "ChangeTracking-Linux",
        **"extensionSettings": {},**
        "name": "CTDataSource-Linux",
        "streams": [
          "Microsoft-ConfigurationChange",
          "Microsoft-ConfigurationChangeV2",
          "Microsoft-ConfigurationData"
        ]
      }
    ]
  },
...
  "type": "Microsoft.Insights/dataCollectionRules"
}

Expected behavior

using monitor-control-service 0.4.1, extensionSettings is not null.

az --version

azure-cli                         2.55.0
core                              2.55.0
telemetry                          1.1.0
Extensions:
ai-examples                        0.2.5
connectedk8s                       1.5.4
ml                                2.22.0
monitor-control-service               0.4.1
ssh                                2.0.2
Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2
Python location '/usr/bin/python3.9'
Extensions directory '/home/yuka/.azure/cliextensions'
Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'
Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32) 
[GCC 11.2.0]
Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

az monitor data-collection rule show --resource-group 'defaultresourcegroup-ejp' --name 'ct-dcr-1622755568'

{           
  "dataCollectionEndpointId": null,
  "dataFlows": [
    {
      "destinations": [
        "Microsoft-CT-Dest"
      ],
      "outputStream": null,
      "streams": [
        "Microsoft-ConfigurationChange",
        "Microsoft-ConfigurationChangeV2",
        "Microsoft-ConfigurationData"
      ],
      "transformKql": null
    }
  ],
  "dataSources": {
    "extensions": [
      {
        "extensionName": "ChangeTracking-Windows",
        **"extensionSettings": {**
          "enableFiles": true,
          "enableInventory": true,
          "enableRegistry": true,
          "enableServices": true,
          "enableSoftware": true,
          "fileSettings": {
            "fileCollectionFrequency": 2700,
            "fileinfo": [
              {
                "checksum": "Md5",
                "description": "",
                "enabled": true,
                "groupTag": "Custom",
                "maxContentsReturnable": 5000000,
                "maxOutputSize": 0,
                "name": "custom log files",
                "path": "C:\\AMACustomLogs\\*.log",
                "pathType": "File",
                "recurse": true,
                "uploadContent": false
              }
            ]
          },
          "inventorySettings": {
            "inventoryCollectionFrequency": 36000
          },
          "registrySettings": {
            "registryCollectionFrequency": 3000,
            "registryInfo": [
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Startup",
                "name": "Registry_1",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Shutdown",
                "name": "Registry_2",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run",
                "name": "Registry_3",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components",
                "name": "Registry_4",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\ShellEx\\ContextMenuHandlers",
                "name": "Registry_5",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Background\\ShellEx\\ContextMenuHandlers",
                "name": "Registry_6",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Shellex\\CopyHookHandlers",
                "name": "Registry_7",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers",
                "name": "Registry_8",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers",
                "name": "Registry_9",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper Objects",
                "name": "Registry_10",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper Objects",
                "name": "Registry_11",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer\\Extensions",
                "name": "Registry_12",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Internet Explorer\\Extensions",
                "name": "Registry_13",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
                "name": "Registry_14",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
                "name": "Registry_15",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\KnownDlls",
                "name": "Registry_16",
                "recurse": true,
                "valueName": ""
              },
              {
                "description": "",
                "enabled": false,
                "groupTag": "Recommended",
                "keyName": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify",
                "name": "Registry_17",
                "recurse": true,
                "valueName": ""
              }
            ]
          },
          "servicesSettings": {
            "serviceCollectionFrequency": 1800
          },
          "softwareSettings": {
            "softwareCollectionFrequency": 1800
          }
        },
        "inputDataSources": null,
        "name": "CTDataSource-Windows",
        "streams": [
          "Microsoft-ConfigurationChange",
          "Microsoft-ConfigurationChangeV2",
          "Microsoft-ConfigurationData"
        ]
      },
      {
        "extensionName": "ChangeTracking-Linux",
        "extensionSettings": {
          "enableFiles": true,
          "enableInventory": true,
          "enableRegistry": false,
          "enableServices": true,
          "enableSoftware": true,
          "fileSettings": {
            "fileCollectionFrequency": 900,
            "fileInfo": [
              {
                "destinationPath": "/etc/.*.conf",
                "enabled": true,
                "groupTag": "Recommended",
                "links": "Follow",
                "maxContentsReturnable": 5000000,
                "maxOutputSize": 500000,
                "name": "ChangeTrackingLinuxPath_default",
                "pathType": "File",
                "recurse": true,
                "type": "File",
                "useSudo": true
              }
            ]
          },
          "inventorySettings": {
            "inventoryCollectionFrequency": 36000
          },
          "servicesSettings": {
            "serviceCollectionFrequency": 300
          },
          "softwareSettings": {
            "softwareCollectionFrequency": 300
          }
        },
        "inputDataSources": null,
        "name": "CTDataSource-Linux",
        "streams": [
          "Microsoft-ConfigurationChange",
          "Microsoft-ConfigurationChangeV2",
          "Microsoft-ConfigurationData"
        ]
      }
    ],
    "iisLogs": null,
    "logFiles": null,
    "performanceCounters": null,
    "syslog": null,
    "windowsEventLogs": null
  },
 ...
  "type": "Microsoft.Insights/dataCollectionRules"
}

Environment Summary

az --version

azure-cli                         2.55.0
core                              2.55.0
telemetry                          1.1.0
Extensions:
ai-examples                        0.2.5
connectedk8s                       1.5.4
ml                                2.22.0
monitor-control-service               1.0.1
ssh                                2.0.2
Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2
Python location '/usr/bin/python3.9'
Extensions directory '/home/yuka/.azure/cliextensions'
Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'
Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32) 
[GCC 11.2.0]
Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

Using Get-AzDataCollectionRule, we are able to get DataSourceExtension.

Get-Module -Name Az.Monitor -ListAvailable | Select-Object -Property Name,Version

Name       Version
----       -------
Az.Monitor 5.0.0

Get-AzDataCollectionRule -ResourceGroupName 'defaultresourcegroup-ejp' -Name 'ct-dcr-1622755568'

DataCollectionEndpointId                  : 
DataFlow                                  : {{
                                              "streams": [ "Microsoft-ConfigurationChange", "Microsoft-ConfigurationChangeV2", "Microsoft-ConfigurationData" ],
                                              "destinations": [ "Microsoft-CT-Dest" ]
                                            }}
DataSourceDataImportEventHubConsumerGroup : 
DataSourceDataImportEventHubName          : 
DataSourceDataImportEventHubStream        : 
DataSourceExtension                       : {{
                                              "streams": [ "Microsoft-ConfigurationChange", "Microsoft-ConfigurationChangeV2", "Microsoft-ConfigurationData" ],
                                              "extensionName": "ChangeTracking-Windows",
                                              "extensionSettings": {
                                                "enableFiles": true,
                                                "enableSoftware": true,
                                                "enableRegistry": true,
                                                "enableServices": true,
                                                "enableInventory": true,
                                                "registrySettings": {
                                                  "registryCollectionFrequency": 3000,
                                                  "registryInfo": [
                                                    {
                                                      "name": "Registry_1",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Startup",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_2",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Shutdown",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_3",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_4",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_5",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\ShellEx\\ContextMenuHandlers",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_6",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Background\\ShellEx\\ContextMenuHandlers",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_7",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Shellex\\CopyHookHandlers",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_8",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": 
                                            "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_9",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": 
                                            "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_10",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper 
                                            Objects",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_11",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser 
                                            Helper Objects",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_12",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer\\Extensions",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_13",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Internet Explorer\\Extensions",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_14",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_15",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_16",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\KnownDlls",
                                                      "valueName": ""
                                                    },
                                                    {
                                                      "name": "Registry_17",
                                                      "groupTag": "Recommended",
                                                      "enabled": false,
                                                      "recurse": true,
                                                      "description": "",
                                                      "keyName": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify",
                                                      "valueName": ""
                                                    }
                                                  ]
                                                },
                                                "fileSettings": {
                                                  "fileCollectionFrequency": 2700,
                                                  "fileinfo": [
                                                    {
                                                      "name": "custom log files",
                                                      "enabled": true,
                                                      "description": "",
                                                      "path": "C:\\AMACustomLogs\\*.log",
                                                      "recurse": true,
                                                      "uploadContent": false,
                                                      "maxContentsReturnable": 5000000,
                                                      "maxOutputSize": 0,
                                                      "checksum": "Md5",
                                                      "pathType": "File",
                                                      "groupTag": "Custom"
                                                    }
                                                  ]
                                                },
                                                "softwareSettings": {
                                                  "softwareCollectionFrequency": 1800
                                                },
                                                "inventorySettings": {
                                                  "inventoryCollectionFrequency": 36000
                                                },
                                                "servicesSettings": {
                                                  "serviceCollectionFrequency": 1800
                                                }
                                              },
                                              "name": "CTDataSource-Windows"
                                            }, {
                                              "streams": [ "Microsoft-ConfigurationChange", "Microsoft-ConfigurationChangeV2", "Microsoft-ConfigurationData" ],
                                              "extensionName": "ChangeTracking-Linux",
                                              "extensionSettings": {
                                                "enableFiles": true,
                                                "enableSoftware": true,
                                                "enableRegistry": false,
                                                "enableServices": true,
                                                "enableInventory": true,
                                                "fileSettings": {
                                                  "fileCollectionFrequency": 900,
                                                  "fileInfo": [
                                                    {
                                                      "name": "ChangeTrackingLinuxPath_default",
                                                      "enabled": true,
                                                      "destinationPath": "/etc/.*.conf",
                                                      "useSudo": true,
                                                      "recurse": true,
                                                      "maxContentsReturnable": 5000000,
                                                      "pathType": "File",
                                                      "type": "File",
                                                      "links": "Follow",
                                                      "maxOutputSize": 500000,
                                                      "groupTag": "Recommended"
                                                    }
                                                  ]
                                                },
                                                "softwareSettings": {
                                                  "softwareCollectionFrequency": 300
                                                },
                                                "inventorySettings": {
                                                  "inventoryCollectionFrequency": 36000
                                                },
                                                "servicesSettings": {
                                                  "serviceCollectionFrequency": 300
                                                }
                                              },
                                              "name": "CTDataSource-Linux"
                                            }}
DataSourceIisLog                          : 
DataSourceLogFile                         : 
DataSourcePerformanceCounter              : 
DataSourcePlatformTelemetry               : 
DataSourcePrometheusForwarder             : 
DataSourceSyslog                          : 
DataSourceWindowsEventLog                 : 
DataSourceWindowsFirewallLog              : 
...
Type                                      : Microsoft.Insights/dataCollectionRules
@m-yuka746 m-yuka746 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 7, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 7, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Connected Kubernetes Service Attention This issue is responsible by Azure service team. Monitor labels Jan 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Azure CLI Team The command of the issue is owned by Azure CLI team label Jan 7, 2024
@yonzhan yonzhan added this to the Backlog milestone Jan 7, 2024
@yonzhan yonzhan removed bug This issue requires a change to an existing behavior in the product in order to be resolved. Service Attention This issue is responsible by Azure service team. Connected Kubernetes labels Jan 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-team-triage This issue needs the team to triage. label Jan 7, 2024
@AllyW
Copy link
Member

AllyW commented Jan 29, 2024

@m-yuka746 thanks for opening this issue. Could you help to run az monitor data-collection rule show --resource-group 'defaultresourcegroup-ejp' --name 'ct-dcr-1622755568' --debug using monitor-control-service 1.0.1 and post the detailed log info under this issue?

@m-yuka746
Copy link
Author

@AllyW Hi, it is debug log when I use monitor-control-service 1.0.1.

az --version

azure-cli                         2.55.0 *

core                              2.55.0 *
telemetry                          1.1.0

Extensions:
connectedk8s                       1.5.4
k8s-extension                      1.3.7
monitor-control-service               1.0.1

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\yukamutsuura\.azure\cliextensions'

Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

az monitor data-collection rule show --resource-group 'defaultresourcegroup-ejp' --name 'ct-dcr-1622755568' --debug

az : DEBUG: cli.knack.cli: Command arguments: ['monitor', 'data-collection', 'rule', 'show', '--resource-group', 'defaultresourcegroup-ejp', '--name', 'ct-dcr-1622755568', '--debug']
発生場所 行:1 文字:1
+ az monitor data-collection rule show --resource-group 'defaultresourc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (DEBUG: cli.knac...68', '--debug']:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
DEBUG: cli.knack.cli: __init__ debug log:
Cannot enable color.
DEBUG: cli.knack.cli: Event: Cli.PreExecute []
DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x000002096C01F560>, <function OutputProducer.on_global_arguments at 0x000002096C1A5C60>, <fu
nction CLIQuery.on_global_arguments at 0x000002096C1D37E0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: cli.azure.cli.core: Command index version or cloud profile is invalid or doesn't match the current command.
DEBUG: cli.azure.cli.core: Command index has been invalidated.
DEBUG: cli.azure.cli.core: No module found from index for '['monitor', 'data-collection', 'rule', 'show', '--resource-group', 'defaultresourcegroup-ejp', '--name', 'ct-dcr-1622755568', '--debug']'
DEBUG: cli.azure.cli.core: Loading all modules and extensions
DEBUG: cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cog
nitiveservices', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', '
identity', 'interactive', 'iot', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbm
s', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name                  Load Time    Groups  Commands
DEBUG: cli.azure.cli.core: acr                       0.212        36       149
DEBUG: cli.azure.cli.core: acs                       0.048         7        54
DEBUG: cli.azure.cli.core: advisor                   0.005         3         6
DEBUG: cli.azure.cli.core: ams                       0.008        22       100
DEBUG: cli.azure.cli.core: apim                      0.012        14        68
DEBUG: cli.azure.cli.core: appconfig                 0.006         9        47
DEBUG: cli.azure.cli.core: appservice                0.173        73       260
DEBUG: cli.azure.cli.core: aro                       0.037         1        10
DEBUG: cli.azure.cli.core: backup                    0.012        16        60
DEBUG: cli.azure.cli.core: batch                     0.059        34       102
DEBUG: cli.azure.cli.core: batchai                   0.008        10        30
DEBUG: cli.azure.cli.core: billing                   0.028        19        52
DEBUG: cli.azure.cli.core: botservice                0.008        12        42
DEBUG: cli.azure.cli.core: cdn                       0.010        39       133
DEBUG: cli.azure.cli.core: cloud                     0.007         1         7
DEBUG: cli.azure.cli.core: cognitiveservices         0.006        10        33
DEBUG: cli.azure.cli.core: config                    0.004         2         7
DEBUG: cli.azure.cli.core: configure                 0.003         2         5
DEBUG: cli.azure.cli.core: consumption               0.052         8         9
DEBUG: cli.azure.cli.core: container                 0.023         1        11
DEBUG: cli.azure.cli.core: containerapp              0.242        36       115
DEBUG: cli.azure.cli.core: cosmosdb                  0.024        58       192
DEBUG: cli.azure.cli.core: databoxedge               0.010         5        27
DEBUG: cli.azure.cli.core: dla                       0.008        23        62
DEBUG: cli.azure.cli.core: dls                       0.007         7        41
DEBUG: cli.azure.cli.core: dms                       0.007         3        22
DEBUG: cli.azure.cli.core: eventgrid                 0.008        25        96
DEBUG: cli.azure.cli.core: eventhubs                 0.044        13        19
DEBUG: cli.azure.cli.core: extension                 0.003         1         7
DEBUG: cli.azure.cli.core: feedback                  0.003         1         2
DEBUG: cli.azure.cli.core: find                      0.005         1         1
DEBUG: cli.azure.cli.core: hdinsight                 0.023         8        39
DEBUG: cli.azure.cli.core: identity                  0.006         2        11
DEBUG: cli.azure.cli.core: interactive               0.001         1         1
DEBUG: cli.azure.cli.core: iot                       0.183        19        82
DEBUG: cli.azure.cli.core: keyvault                  0.016        20       113
DEBUG: cli.azure.cli.core: kusto                     0.007         3        14
DEBUG: cli.azure.cli.core: lab                       0.008        11        34
DEBUG: cli.azure.cli.core: managedservices           0.004         3         8
DEBUG: cli.azure.cli.core: maps                      0.005         5        13
DEBUG: cli.azure.cli.core: marketplaceordering       0.009         1         2
DEBUG: cli.azure.cli.core: monitor                   0.604        22        65
DEBUG: cli.azure.cli.core: mysql                     0.203        14        49
DEBUG: cli.azure.cli.core: netappfiles               0.010        17        96
DEBUG: cli.azure.cli.core: network                   0.188       103       338
DEBUG: cli.azure.cli.core: policyinsights            0.030         9        17
DEBUG: cli.azure.cli.core: privatedns                0.051        14        60
DEBUG: cli.azure.cli.core: profile                   0.006         2         8
DEBUG: cli.azure.cli.core: rdbms                     0.040        45       187
DEBUG: cli.azure.cli.core: redis                     0.005         5        27
DEBUG: cli.azure.cli.core: relay                     0.066         7         8
DEBUG: cli.azure.cli.core: resource                  0.023        51       228
DEBUG: cli.azure.cli.core: role                      0.005        17        61
DEBUG: cli.azure.cli.core: search                    0.023         7        19
DEBUG: cli.azure.cli.core: security                  0.007        48       104
DEBUG: cli.azure.cli.core: servicebus                0.020        12        15
DEBUG: cli.azure.cli.core: serviceconnector          0.094        16       235
DEBUG: cli.azure.cli.core: servicefabric             0.034        27        76
DEBUG: cli.azure.cli.core: signalr                   0.005         9        34
DEBUG: cli.azure.cli.core: sql                       0.024        56       215
DEBUG: cli.azure.cli.core: sqlvm                     0.054         4        20
DEBUG: cli.azure.cli.core: storage                   0.071        59       273
DEBUG: cli.azure.cli.core: synapse                   0.020        54       246
DEBUG: cli.azure.cli.core: util                      0.004         3         7
DEBUG: cli.azure.cli.core: vm                        0.077        57       265
DEBUG: cli.azure.cli.core: Total (65)                3.011      1223      4739
DEBUG: cli.azure.cli.core: Loading extensions:
DEBUG: cli.azure.cli.core: Name                  Load Time    Groups  Commands  Directory
DEBUG: cli.azure.cli.core: connectedk8s              0.139         1        10  C:\Users\yukamutsuura\.azure\cliextensions\connectedk8s
DEBUG: cli.azure.cli.core: k8s-extension             0.065         2         9  C:\Users\yukamutsuura\.azure\cliextensions\k8s-extension
DEBUG: cli.azure.cli.core: monitor-control-service      0.048        10        30  C:\Users\yukamutsuura\.azure\cliextensions\monitor-control-service
DEBUG: cli.azure.cli.core: Total (3)                 0.252        13        49  
DEBUG: cli.azure.cli.core: Loaded 1222 groups, 4788 commands.
DEBUG: cli.azure.cli.core: Updated command index in 0.005 seconds.
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x000002096F0F9E40>]
DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\yukamutsuura\.azure\commands\2024-01-29.15-12-05.monitor_data-collection_rule_show.37604.log'.
INFO: az_command_data_logger: command args: monitor data-collection rule show --resource-group {} --name {} --debug
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x000002096F10A340>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x000002096F1642C0>, <function register_cache_arguments.<locals>.add_cach
e_arguments at 0x000002096F164400>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x000002097151F4C0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000002096C1A5D00>, <function CLIQuery.handle_query_parameter at 0x000002096C1D3880>, <funct
ion register_ids_argument.<locals>.parse_ids_arguments at 0x000002096F164360>]
INFO: az_command_data_logger: extension name: monitor-control-service
INFO: az_command_data_logger: extension version: 1.0.1
DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='C:\\Users\\yukamutsuura\\.azure\\msal_token_cache.bin', encrypt=True
DEBUG: cli.azure.cli.core.auth.binary_cache: load: C:\Users\yukamutsuura\.azure\msal_http_cache.bin
DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
DEBUG: cli.azure.cli.core.auth.binary_cache: save: C:\Users\yukamutsuura\.azure\msal_http_cache.bin
DEBUG: cli.azure.cli.core.auth.binary_cache: save: C:\Users\yukamutsuura\.azure\msal_http_cache.bin
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443
DEBUG: urllib3.connectionpool: https://login.microsoftonline.com:443 "GET /72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration HTTP/1.1" 200 1753
DEBUG: cli.azure.cli.core.auth.binary_cache: save: C:\Users\yukamutsuura\.azure\msal_http_cache.bin
DEBUG: cli.azure.cli.core.auth.binary_cache: save: C:\Users\yukamutsuura\.azure\msal_http_cache.bin
DEBUG: msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secre
t_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment
', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_su
pported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endp
oint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize', 'device_authorization_endpoint'
: 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://log
in.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host
', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91
ab-2d7cd011db47/kerberos', 'tenant_region_scope': 'WW', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https
://pas.windows.net'}
DEBUG: msal.application: Broker enabled? False
DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
DEBUG: cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
DEBUG: msal.application: Found 1 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.72f988bf-86f1-41af-91ab-2d7cd011db47', 'family_id': '1'}
DEBUG: msal.telemetry: Generate or reuse correlation_id: c785132f-560e-4067-8f65-7367ac79bda3
DEBUG: msal.application: Cache attempts an RT
DEBUG: urllib3.connectionpool: https://login.microsoftonline.com:443 "POST /72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token HTTP/1.1" 200 5738
DEBUG: msal.token_cache: event={
    "client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
    "data": {
        "claims": "{\"access_token\": {\"xms_cc\": {\"values\": [\"CP1\"]}}}",
        "refresh_token": "********",
        "scope": [
            "profile",
            "openid",
            "offline_access",
            "https://management.core.windows.net//.default"
        ]
    },
    "environment": "login.microsoftonline.com",
    "grant_type": "refresh_token",
    "params": null,
    "response": {
        "access_token": "********",
        "client_info": "eyJ1aWQiOiI1MDliMTVmZC0wZWEzLTQ0NGQtYTU0MS1kMmNjM2M0NWUwMTEiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0",
        "expires_in": 4829,
        "ext_expires_in": 4829,
        "foci": "1",
        "id_token": "********",
        "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default",
        "token_type": "Bearer"
    },
    "scope": [
        "https://management.core.windows.net//user_impersonation",
        "https://management.core.windows.net//.default"
    ],
    "skip_account_creation": true,
    "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token"
}
DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/c135ce6a-ba0c-44c9-ae0f-344d01cf8382/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Insights/da
taCollectionRules/ct-dcr-1622755568?api-version=2022-06-01'
DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET'
DEBUG: cli.azure.cli.core.sdk.policies: Request headers:
DEBUG: cli.azure.cli.core.sdk.policies:     'Accept': 'application/json'
DEBUG: cli.azure.cli.core.sdk.policies:     'x-ms-client-request-id': '51883ad6-be6d-11ee-b9d6-201e88965d79'
DEBUG: cli.azure.cli.core.sdk.policies:     'CommandName': 'monitor data-collection rule show'
DEBUG: cli.azure.cli.core.sdk.policies:     'ParameterSetName': '--resource-group --name --debug'
DEBUG: cli.azure.cli.core.sdk.policies:     'User-Agent': 'AZURECLI/2.55.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.11.5 (Windows-10-10.0.22621-SP0)'
DEBUG: cli.azure.cli.core.sdk.policies:     'Authorization': '*****'
DEBUG: cli.azure.cli.core.sdk.policies: Request body:
DEBUG: cli.azure.cli.core.sdk.policies: This request has no body
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/c135ce6a-ba0c-44c9-ae0f-344d01cf8382/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Insights/dataCollectionR
ules/ct-dcr-1622755568?api-version=2022-06-01 HTTP/1.1" 200 6483
DEBUG: cli.azure.cli.core.sdk.policies: Response status: 200
DEBUG: cli.azure.cli.core.sdk.policies: Response headers:
DEBUG: cli.azure.cli.core.sdk.policies:     'Cache-Control': 'no-cache'
DEBUG: cli.azure.cli.core.sdk.policies:     'Pragma': 'no-cache'
DEBUG: cli.azure.cli.core.sdk.policies:     'Content-Length': '6483'
DEBUG: cli.azure.cli.core.sdk.policies:     'Content-Type': 'application/json; charset=utf-8'
DEBUG: cli.azure.cli.core.sdk.policies:     'Expires': '-1'
DEBUG: cli.azure.cli.core.sdk.policies:     'Vary': 'Accept-Encoding'
DEBUG: cli.azure.cli.core.sdk.policies:     'x-ms-ratelimit-remaining-subscription-reads': '11999'
DEBUG: cli.azure.cli.core.sdk.policies:     'Request-Context': 'appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3'
DEBUG: cli.azure.cli.core.sdk.policies:     'x-ms-correlation-request-id': '6383a912-79b6-4b19-ac5c-8e8d44685751'
DEBUG: cli.azure.cli.core.sdk.policies:     'x-ms-client-request-id': '51883ad6-be6d-11ee-b9d6-201e88965d79'
DEBUG: cli.azure.cli.core.sdk.policies:     'x-ms-routing-request-id': 'JAPANEAST:20240129T061205Z:6383a912-79b6-4b19-ac5c-8e8d44685751'
DEBUG: cli.azure.cli.core.sdk.policies:     'x-ms-request-id': '54841481-e9a8-4b6c-9dee-69a772f449b6'
DEBUG: cli.azure.cli.core.sdk.policies:     'api-supported-versions': '2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11'
DEBUG: cli.azure.cli.core.sdk.policies:     'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
DEBUG: cli.azure.cli.core.sdk.policies:     'X-Content-Type-Options': 'nosniff'
DEBUG: cli.azure.cli.core.sdk.policies:     'X-Cache': 'CONFIG_NOCACHE'
DEBUG: cli.azure.cli.core.sdk.policies:     'X-MSEdge-Ref': 'Ref A: 73A2B400D47F41D59225C813F3A6E83B Ref B: TYO01EDGE1516 Ref C: 2024-01-29T06:12:05Z'
DEBUG: cli.azure.cli.core.sdk.policies:     'Date': 'Mon, 29 Jan 2024 06:12:05 GMT'
DEBUG: cli.azure.cli.core.sdk.policies: Response content:
DEBUG: cli.azure.cli.core.sdk.policies: {"properties":{"description":"Data collection rule for ct.","immutableId":"dcr-6457a72eabce4ff99652e928b84d9d87","dataSources":{"extensions":[{"streams":["Microsoft-
ConfigurationChange","Microsoft-ConfigurationChangeV2","Microsoft-ConfigurationData"],"extensionName":"ChangeTracking-Windows","extensionSettings":{"enableFiles":true,"enableSoftware":true,"enableRegistry"
:true,"enableServices":true,"enableInventory":true,"registrySettings":{"registryCollectionFrequency":3000,"registryInfo":[{"name":"Registry_1","groupTag":"Recommended","enabled":false,"recurse":true,"descr
iption":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Startup","valueName":""},{"name":"Registry_2","groupTag":"Recommended","enabled":false,"recurs
e":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Shutdown","valueName":""},{"name":"Registry_3","groupTag":"Recommended","enabled
":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run","valueName":""},{"name":"Registry_4","groupTag":"Recommended","enabled
":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components","valueName":""},{"name":"Registry_5","groupTag":"Recommended","enabled":false
,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\ShellEx\\ContextMenuHandlers","valueName":""},{"name":"Registry_6","groupTag":"Recommended","enabled":false,"re
curse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Background\\ShellEx\\ContextMenuHandlers","valueName":""},{"name":"Registry_7","groupTag":"Recommended","enabled":f
alse,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Classes\\Directory\\Shellex\\CopyHookHandlers","valueName":""},{"name":"Registry_8","groupTag":"Recommended","enabled":false,"r
ecurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers","valueName":""},{"name":"Registry_9","groupTag":"Recommende
d","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ShellIconOverlayIdentifiers","valueName":""},{"name":"
Registry_10","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper Objects","valueNa
me":""},{"name":"Registry_11","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Br
owser Helper Objects","valueName":""},{"name":"Registry_12","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer\\E
xtensions","valueName":""},{"name":"Registry_13","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Internet Explorer\
\Extensions","valueName":""},{"name":"Registry_14","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\D
rivers32","valueName":""},{"name":"Registry_15","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\Current
Version\\Drivers32","valueName":""},{"name":"Registry_16","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session
 Manager\\KnownDlls","valueName":""},{"name":"Registry_17","groupTag":"Recommended","enabled":false,"recurse":true,"description":"","keyName":"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVe
rsion\\Winlogon\\Notify","valueName":""}]},"fileSettings":{"fileCollectionFrequency":2700,"fileinfo":[{"name":"custom log files","enabled":true,"description":"","path":"C:\\AMACustomLogs\\*.log","recurse":
true,"uploadContent":false,"maxContentsReturnable":5000000,"maxOutputSize":0,"checksum":"Md5","pathType":"File","groupTag":"Custom"}]},"softwareSettings":{"softwareCollectionFrequency":1800},"inventorySett
ings":{"inventoryCollectionFrequency":36000},"servicesSettings":{"serviceCollectionFrequency":1800}},"name":"CTDataSource-Windows"},{"streams":["Microsoft-ConfigurationChange","Microsoft-ConfigurationChang
eV2","Microsoft-ConfigurationData"],"extensionName":"ChangeTracking-Linux","extensionSettings":{"enableFiles":true,"enableSoftware":true,"enableRegistry":false,"enableServices":true,"enableInventory":true,
"fileSettings":{"fileCollectionFrequency":900,"fileInfo":[{"name":"ChangeTrackingLinuxPath_default","enabled":true,"destinationPath":"/etc/.*.conf","useSudo":true,"recurse":true,"maxContentsReturnable":500
0000,"pathType":"File","type":"File","links":"Follow","maxOutputSize":500000,"groupTag":"Recommended"}]},"softwareSettings":{"softwareCollectionFrequency":300},"inventorySettings":{"inventoryCollectionFreq
uency":36000},"servicesSettings":{"serviceCollectionFrequency":300}},"name":"CTDataSource-Linux"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/c135ce6a-ba0c-44c9-ae0f-344d01cf83
82/resourceGroups/DefaultResourceGroup-EJP/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-c135ce6a-ba0c-44c9-ae0f-344d01cf8382-EJP","workspaceId":"55614dcd-37ae-445f-84ed-25db921c4e56"
,"name":"Microsoft-CT-Dest"}]},"dataFlows":[{"streams":["Microsoft-ConfigurationChange","Microsoft-ConfigurationChangeV2","Microsoft-ConfigurationData"],"destinations":["Microsoft-CT-Dest"]}],"provisioning
State":"Succeeded"},"location":"japaneast","id":"/subscriptions/c135ce6a-ba0c-44c9-ae0f-344d01cf8382/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Insights/dataCollectionRules/ct-dcr-16227555
68","name":"ct-dcr-1622755568","type":"Microsoft.Insights/dataCollectionRules","etag":"\"a7106145-0000-2300-0000-6555751a0000\"","systemData":{"createdBy":"[email protected]","createdByType":"User
","createdAt":"2023-11-16T01:39:32.6810356Z","lastModifiedBy":"[email protected]","lastModifiedByType":"User","lastModifiedAt":"2023-11-16T01:49:14.1845577Z"}}
DEBUG: cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x000002096F1313A0>, <function _x509_from_base64_to_hex_transform at 0x000002096F131440>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnFilterResult []
DEBUG: cli.knack.cli: Event: Cli.SuccessfulExecute []
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000002096F0FA0C0>]
INFO: az_command_data_logger: exit code: 0
INFO: cli.__main__: Command ran in 5.684 seconds (init: 0.603, invoke: 5.082)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 3451 in cache
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Use
rs\yukamutsuura\.azure"
INFO: telemetry.process: Return from creating process
INFO: telemetry.main: Finish creating telemetry upload process.
{
  "dataFlows": [
    {
      "destinations": [
        "Microsoft-CT-Dest"
      ],
      "streams": [
        "Microsoft-ConfigurationChange",
        "Microsoft-ConfigurationChangeV2",
        "Microsoft-ConfigurationData"
      ]
    }
  ],
  "dataSources": {
    "extensions": [
      {
        "extensionName": "ChangeTracking-Windows",
        "extensionSettings": {},
        "name": "CTDataSource-Windows",
        "streams": [
          "Microsoft-ConfigurationChange",
          "Microsoft-ConfigurationChangeV2",
          "Microsoft-ConfigurationData"
        ]
      },
      {
        "extensionName": "ChangeTracking-Linux",
        "extensionSettings": {},
        "name": "CTDataSource-Linux",
        "streams": [
          "Microsoft-ConfigurationChange",
          "Microsoft-ConfigurationChangeV2",
          "Microsoft-ConfigurationData"
        ]
      }
    ]
  },
  "description": "Data collection rule for ct.",
  "destinations": {
    "logAnalytics": [
      {
        "name": "Microsoft-CT-Dest",
        "workspaceId": "55614dcd-37ae-445f-84ed-25db921c4e56",
        "workspaceResourceId": "/subscriptions/c135ce6a-ba0c-44c9-ae0f-344d01cf8382/resourceGroups/DefaultResourceGroup-EJP/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-c135ce6a-ba0c-
44c9-ae0f-344d01cf8382-EJP"
      }
    ]
  },
  "etag": "\"a7106145-0000-2300-0000-6555751a0000\"",
  "id": "/subscriptions/c135ce6a-ba0c-44c9-ae0f-344d01cf8382/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Insights/dataCollectionRules/ct-dcr-1622755568",
  "immutableId": "dcr-6457a72eabce4ff99652e928b84d9d87",
  "location": "japaneast",
  "name": "ct-dcr-1622755568",
  "provisioningState": "Succeeded",
  "resourceGroup": "defaultresourcegroup-ejp",
  "systemData": {
    "createdAt": "2023-11-16T01:39:32.6810356Z",
    "createdBy": "[email protected]",
    "createdByType": "User",
    "lastModifiedAt": "2023-11-16T01:49:14.1845577Z",
    "lastModifiedBy": "[email protected]",
    "lastModifiedByType": "User"
  },
  "type": "Microsoft.Insights/dataCollectionRules"
}

@AllyW
Copy link
Member

AllyW commented Mar 28, 2024

@m-yuka746 thanks for debugging log. This seems something lost in deserialization from our autogeneration code and we'll deal with it and let you know if anything changes. Please use monitor-control-service==0.4.1 before we fix it.

@AllyW AllyW added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor needs-team-triage This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants