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:
- Make sure there is a default workspace setting with az cli command: az security workspace-setting list
- Create an instance of security center in Python code: sec_instance = SecurityCenter(subscription_id=SUBSCRIPTION_ID, credential=new_credential)
- 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
Labels
This issue is related to a management-plane library.Workflow: This issue is responsible by Azure service team.Issues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK teamThe issue doesn't require a change to the product in order to be resolved. Most issues start as that