Skip to content

Security Center Workspace Setting Returns an Error Message Even When Successful #21287

Open

Description

Package Name: azure.mgmt.security
Package Version: 2017_08_01_preview
Operating System: Linux (ubuntu 20.04)
Python Version: 3.9.14

Describe the bug: When deleting a workspace setting, the operation is successful and returns 200 OK but still returns an error message:

File "***/azure/mgmt/security/v2017_08_01_preview/operations/_workspace_settings_operations.py", in delete
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'OK'

To Reproduce:

  1. Make sure there is a default workspace setting with az cli command: az security workspace-setting list
  2. Create an instance of security center in Python code: sec_instance = SecurityCenter(subscription_id=SUBSCRIPTION_ID, credential=new_credential)
  3. Delete the security_center_setting in Python code: sec_instance.workspace_settings.delete(workspace_setting_name="default")

Expected behavior: Deletion should occur (preferably with a return message but the docs show no default return message anyway) and no error response if successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.SecurityService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions