full-winter-70537
03/11/2021, 6:56 AMListTopicKeys.InvokeAsync()
passing in:
new ListTopicKeysArgs
{
NamespaceName = args.ServiceBusName,
AuthorizationRuleName = "RootManageSharedAccessKey",
ResourceGroupName = args.ResourceGroupName,
TopicName = "mytopic"
})
But I get the error:
Status=404 Code="NotFound" Message="The requested resource RootManageSharedAccessKey does not exist.
It's clearly available on the service bus under Shared Access Policies (see below).
I have placed the InvokeAsync() call into a ComponentResource
and made it DependOn the service bus, so it should exist by the time it is called.
Is my understanding of how ListTopicKeys works correct? Any idea how to retrieve the connection string from the service bus?tall-librarian-49374
03/11/2021, 7:37 AMfull-winter-70537
03/11/2021, 7:43 AMconst sendEventSourceKey = new eventhub.EventHubAuthorizationRule("send", {
resourceGroupName: resourceGroupName,
namespaceName: eventHubNamespace.name,
eventHubName: eventHub.name,
authorizationRuleName: "send",
rights: ["send"],
}, { parent: eventHub });
The one I'm trying to access is the default namespace SAS Policy. Here what I see from the ARM template:
{
"type": "Microsoft.ServiceBus/namespaces/AuthorizationRules",
"apiVersion": "2017-04-01",
"name": "[concat(parameters('namespaces_mynamespace_name'), '/RootManageSharedAccessKey')]",
"location": "Australia East",
"dependsOn": [
"[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespaces_mynamespace_name'))]"
],
"properties": {
"rights": [
"Listen",
"Manage",
"Send"
]
}
},
Topic
key. Duh. My bad, thankstall-librarian-49374
03/11/2021, 8:30 AM