{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/3149","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-python","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/3149/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/3149/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/3149/events","html_url":"https://github.com/Azure/azure-sdk-for-python/issues/3149","id":350788091,"node_id":"MDU6SXNzdWUzNTA3ODgwOTE=","number":3149,"title":"[azure-mgmt-servicebus] Creating Topic Rule \"Bad Request\"","user":{"login":"ChrisBNR","id":34375810,"node_id":"MDQ6VXNlcjM0Mzc1ODEw","avatar_url":"https://avatars2.githubusercontent.com/u/34375810?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisBNR","html_url":"https://github.com/ChrisBNR","followers_url":"https://api.github.com/users/ChrisBNR/followers","following_url":"https://api.github.com/users/ChrisBNR/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBNR/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBNR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBNR/subscriptions","organizations_url":"https://api.github.com/users/ChrisBNR/orgs","repos_url":"https://api.github.com/users/ChrisBNR/repos","events_url":"https://api.github.com/users/ChrisBNR/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBNR/received_events","type":"User","site_admin":false},"labels":[{"id":117005085,"node_id":"MDU6TGFiZWwxMTcwMDUwODU=","url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels/Bug","name":"Bug","color":"f7c6c7","default":false},{"id":442750023,"node_id":"MDU6TGFiZWw0NDI3NTAwMjM=","url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels/RestAPI","name":"RestAPI","color":"006b75","default":false},{"id":1069434623,"node_id":"MDU6TGFiZWwxMDY5NDM0NjIz","url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels/Service%20Attention","name":"Service Attention","color":"e99695","default":false},{"id":117005255,"node_id":"MDU6TGFiZWwxMTcwMDUyNTU=","url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels/Service%20Bus","name":"Service Bus","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-15T12:17:16Z","updated_at":"2018-11-07T23:57:13Z","closed_at":null,"author_association":"NONE","body":"Following an example similar to: https://github.com/Azure/azure-sdk-for-python/blob/master/azure-mgmt-servicebus/tests/test_azure_mgmt_servicebus_topic.py#L67 , if you do not apply all 3 access rights (i.e. [AccessRights.manage, AccessRights.send, AccessRights.listen]) when creating a rule for a specified topic an error is returned: ErrorResponseException: Operation returned an invalid status code 'Bad Request'.\r\n\r\ntopic_operations.py:\r\n[L446]     `request = self._client.put(url, query_parameters)`\r\n[L447]     `response = self._client.send(request, header_parameters, body_content, stream=False, **operation_config)`\r\n\r\n```\r\nurl = https://management.azure.com/subscriptions/xxxxx/resourceGroups/xxxxx/providers/Microsoft.ServiceBus/namespaces/xxxxx/topics/xxxxx/authorizationRules/AuthorizationRule\r\nquery_parameters = {'api-version': '2017-04-01'}\r\nbody_content = {'properties': {'rights': ['Manage']}}\r\nheader_parameters = {'accept-language': 'en-US', 'Content-Type': 'application/json; charset=utf-8', 'x-ms-client-request-id': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/comments/436822137","html_url":"https://github.com/Azure/azure-sdk-for-python/issues/3149#issuecomment-436822137","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/3149","id":436822137,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjgyMjEzNw==","user":{"login":"lmazuel","id":1050156,"node_id":"MDQ6VXNlcjEwNTAxNTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1050156?v=4","gravatar_id":"","url":"https://api.github.com/users/lmazuel","html_url":"https://github.com/lmazuel","followers_url":"https://api.github.com/users/lmazuel/followers","following_url":"https://api.github.com/users/lmazuel/following{/other_user}","gists_url":"https://api.github.com/users/lmazuel/gists{/gist_id}","starred_url":"https://api.github.com/users/lmazuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmazuel/subscriptions","organizations_url":"https://api.github.com/users/lmazuel/orgs","repos_url":"https://api.github.com/users/lmazuel/repos","events_url":"https://api.github.com/users/lmazuel/events{/privacy}","received_events_url":"https://api.github.com/users/lmazuel/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T23:57:13Z","updated_at":"2018-11-07T23:57:13Z","author_association":"MEMBER","body":"@bearrito I contacted the team explicitly right now. I would suggest to wait a little, but if you don't hear anything in this thread by the end of the week, open a support ticket.\r\n"}}
{"actor":{"display_login":"lmazuel"}}