{"id":44366,"library":"azure-mgmt-securityinsight","title":"Azure Security Insight Management Client Library","description":"Official Microsoft Azure SDK for managing Security Insights (Azure Sentinel) resources. Version 1.0.0 requires Python >=3.6 and supports operations on alert rules, bookmarks, incidents, and more.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python","tags":["azure","security","sentinel","management","sdk"],"install":[{"cmd":"pip install azure-mgmt-securityinsight","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Authentication (DefaultAzureCredential)","package":"azure-identity","optional":false},{"reason":"Resource management helper","package":"azure-mgmt-resource","optional":true}],"imports":[{"note":"Class name is plural; singular 'SecurityInsight' does not exist.","wrong":"from azure.mgmt.securityinsight import SecurityInsight","symbol":"SecurityInsights","correct":"from azure.mgmt.securityinsight import SecurityInsights"},{"note":"","wrong":"","symbol":"SecurityInsightsClient","correct":"from azure.mgmt.securityinsight import SecurityInsightsClient"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.securityinsight import SecurityInsights\n\nsubscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '')\nresource_group = 'myResourceGroup'\nworkspace_name = 'myWorkspace'\n\nclient = SecurityInsights(credential=DefaultAzureCredential(), subscription_id=subscription_id)\n\nalert_rules = client.alert_rules.list(resource_group_name=resource_group, workspace_name=workspace_name)\nfor rule in alert_rules:\n    print(rule.name)","lang":"python","description":"Authenticate using DefaultAzureCredential and list alert rules."},"warnings":[{"fix":"Use 'from azure.mgmt.securityinsight import SecurityInsights' instead of SecurityInsightsClient.","message":"The client class name changed from SecurityInsightsClient (preview versions) to SecurityInsights in v1.0.0. Update imports.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Obtain the workspace name (e.g., 'DefaultWorkspace-<GUID>') from Azure Portal.","message":"All operations require both resource_group_name and workspace_name parameters; the workspace name is not the same as the Log Analytics workspace ID.","severity":"gotcha","affected_versions":"all"},{"fix":"Review migration guides if using incident APIs.","message":"The 'incidents' operations may be deprecated in favor of new operations. Check changelog.","severity":"deprecated","affected_versions":"current"}],"env_vars":null,"search_vec":"'1.0.0':19 '3.6':22 'alert':27 'azur':1,9,15,33 'bookmark':29 'client':5 'incid':30 'insight':3,14 'librari':6 'manag':4,12,36 'microsoft':8 'offici':7 'oper':25 'python':21 'requir':20 'resourc':17 'rule':28 'sdk':10,37 'secur':2,13,34 'sentinel':16,35 'support':24 'version':18","created_at":"2026-06-07T12:49:46.552556+00:00","updated_at":"2026-06-07T12:49:46.552556+00:00","problems":[{"fix":"Upgrade to v1.0.0: pip install --upgrade azure-mgmt-securityinsight","cause":"Installed an older version (<1.0.0) where the class was named SecurityInsightsClient.","error":"ImportError: cannot import name 'SecurityInsights' from 'azure.mgmt.securityinsight'"},{"fix":"Ensure you are using the correct client class (SecurityInsights) and that the package is up-to-date.","cause":"Using an older API version or incorrect client initialization.","error":"AttributeError: 'SecurityInsights' object has no attribute 'alert_rules'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Azure/azure-sdk-for-python","github":"https://github.com/Azure/azure-sdk-for-python","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}