-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comments
Thank you for opening this issue, we will look into it. |
@m-yuka746 thanks for opening this issue. Could you help to run |
@AllyW Hi, it is debug log when I use monitor-control-service 1.0.1. az --version
az monitor data-collection rule show --resource-group 'defaultresourcegroup-ejp' --name 'ct-dcr-1622755568' --debug
|
@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. |
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'
Expected behavior
using monitor-control-service 0.4.1, extensionSettings is not null.
az --version
az monitor data-collection rule show --resource-group 'defaultresourcegroup-ejp' --name 'ct-dcr-1622755568'
Environment Summary
az --version
Additional context
Using Get-AzDataCollectionRule, we are able to get DataSourceExtension.
Get-Module -Name Az.Monitor -ListAvailable | Select-Object -Property Name,Version
Get-AzDataCollectionRule -ResourceGroupName 'defaultresourcegroup-ejp' -Name 'ct-dcr-1622755568'
The text was updated successfully, but these errors were encountered: