-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Azure Python SDK - get info of update management in automation account #6487
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zjalexander |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zjalexander |
The data is stored in Log Analytics. So you would need to use this API with these queries |
thanks @zjalexander . I have applied what you said. But getting errors. Below is code and error from azure.common.credentials import UserPassCredentials GROUP_NAME = 'patching' subscription_id = '111111-11111111-1111-111111' credentials = UserPassCredentials( client = ResourceManagementClient(credentials, subscription_id) query = """search in (Update) "error" """ loganalys_client = LogAnalyticsDataClient(credentials=credentials) query_body = QueryBody(query=query) ERROR: File "/usr/local/lib/python3.6/dist-packages/azure/loganalytics/log_analytics_data_client.py", line 120, in query the credential authentication works perfectly for automation client or hybrdrunbookworkergroup. |
But you definitely have RBAC access to the Log Analytics workspace, with that user account, right? If so I need to kick this over to the Log Analytics folks. |
Yes @zjalexander i am able to use loganalytics in azure portal and query the update manager . I wil check the document in the meantime. Thanks |
any update on this issue ? |
Hi i tried implementing the solution in this issue. here they were using ServicePrincipalCredentials as authentication method but in my case i am using UserPassCredentials as authentication method. I am getting the same error. So is there a solution for UserPassCredentials? |
According to this link :
|
My requirement is to extract info about update management in automation account . I need to get the details of machines in update management. Is there a way i can get info about these machines . I have tried a couple of things in below code . But still not able to get to update management.
I am able to get nodes using hybrid_runbook_worker_group , but not the properties of those nodes in update management. I need a method to query Update management and the info of machines in it . Is there a way to do so.
Thanks
The text was updated successfully, but these errors were encountered: