Open smilinazzo opened 2 years ago
@qiaozha any ideas?
This also seems to work from my Win11 system:
PUT:
>> Request: {
"url": "https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/MyGroup/providers/Microsoft.EventHub/namespaces/MyNamespace/eventhubs/testhub?api-version=2021-11-01",
"method": "PUT",
"headers": {
"_headersMap": {
"accept-language": {
"name": "accept-language",
"value": "en-US"
},
"x-ms-client-request-id": {
"name": "x-ms-client-request-id",
"value": "3bb6f99b-2cd2-43c6-b00b-80c5093ca5c6"
},
"content-type": {
"name": "content-type",
"value": "application/json; charset=utf-8"
},
"authorization": {
"name": "authorization",
"value": "Bearer <token>"
},
"user-agent": {
"name": "user-agent",
"value": "ms-rest-js/2.6.1 Node/v14.18.1 OS/(x64-Linux-4.4.0-22000-Microsoft)"
},
"cookie": {
"name": "Cookie",
"value": ""
}
}
},
"body": "{\"properties\":{\"messageRetentionInDays\":1,\"partitionCount\":1,\"partitionIds\":[],\"status\":\"Active\"}}",
"query": {
"api-version": "2021-11-01"
},
"withCredentials": false,
"timeout": 0
}
>> Response status code: 200
DELETE:
>> Request: {
"url": "https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/MyGroup/providers/Microsoft.EventHub/namespaces/MyNamespace/eventhubs/testhub?api-version=2021-11-01",
"method": "DELETE",
"headers": {
"_headersMap": {
"accept-language": {
"name": "accept-language",
"value": "en-US"
},
"x-ms-client-request-id": {
"name": "x-ms-client-request-id",
"value": "b0e64a5f-fd63-4a9d-a1c3-732dc2d125a7"
},
"content-type": {
"name": "content-type",
"value": "application/json; charset=utf-8"
},
"authorization": {
"name": "authorization",
"value": "Bearer <token>"
},
"user-agent": {
"name": "user-agent",
"value": "ms-rest-js/2.6.1 Node/v14.18.1 OS/(x64-Linux-4.4.0-22000-Microsoft)"
},
"cookie": {
"name": "Cookie",
"value": ""
}
}
},
"query": {
"api-version": "2021-11-01"
},
"withCredentials": false,
"timeout": 0
}
>> Response status code: 200
Package Version:
2.6.1
14.18.3
macOS Monterey 12.4
Describe the bug Looking for a bit of guidance.
I am creating and using an Event Hub as follows:
I'm finding I can create the EventHub and use the Producer but when I attempt to delete the EventHub, the request response is 200 but the event hub is not deleted. Whats odd is that the
Message Retention
value will change from 1 to 7. I then have to delete it through the Portal.If I create an EventHub through the portal UI, the delete through REST works on that EventHub.
Any ideas as to why this is?
As a note, with CURL, this works:
Expected behavior Expect the EventHub to be deleted from the ResourceGroup.
Screenshots N/A