azure-samples-python-management icon indicating copy to clipboard operation
azure-samples-python-management copied to clipboard

broken import due to renamed MonitorClient to MonitorManagementClient

Open SREbuilt opened this issue 4 years ago • 0 comments

wrong import seen in manage_activity_log_alert.py

probably there are more broken imports due to refactoring going on and probable all samples should be re-validated for broken imports..

correct are: [..] from azure.mgmt.monitor import MonitorManagementClient [..] monitor_client = MonitorManagementClient( credential=DefaultAzureCredential(), subscription_id=SUBSCRIPTION_ID )

SREbuilt avatar May 07 '21 08:05 SREbuilt