-
Notifications
You must be signed in to change notification settings - Fork 6
Description
In your posts for service-bus-java-manage-queue-with-basic-features, you mentioned about file based credentials, which credentials do you want to put into that ? I hope those are the Service Principal client Id and key, but how are you getting that Service Prinicipal for your login id and password ? Or if it needs to create a new AAD Application, how to associate it to be able to create the resource groups, namespaces under our subscription id ? AM getting the error as below :
[RxIoScheduler-2] INFO com.microsoft.azure.management.servicebus.Namespaces createOrUpdate - 390-byte body:
{"error":{"code":"AuthorizationFailed","message":"The client '1b62a9c3-d97f-41cb-965f-388b65f2a78d' with object id '1b62a9c3-d97f-41cb-965f-388b65f2a78d' does not have authorization to perform action 'Microsoft.ServiceBus/namespaces/write' over scope '/subscriptions/adb1c381-b337-4db1-889b-e8dae5fbb822/resourceGroups/vccrg/providers/Microsoft.ServiceBus/namespaces/namespace3c633290e'."}}
[RxIoScheduler-2] INFO com.microsoft.azure.management.servicebus.Namespaces createOrUpdate - <-- END HTTP
The client '1b62a9c3-d97f-41cb-965f-388b65f2a78d' with object id '1b62a9c3-d97f-41cb-965f-388b65f2a78d' does not have authorization to perform action 'Microsoft.ServiceBus/namespaces/write' over scope '/subscriptions/adb1c381-b337-4db1-889b-e8dae5fbb822/resourceGroups/vccrg/providers/Microsoft.ServiceBus/namespaces/namespace3c633290e'.
com.microsoft.azure.CloudException: The client '1b62a9c3-d97f-41cb-965f-388b65f2a78d' with object id '1b62a9c3-d97f-41cb-965f-388b65f2a78d' does not have authorization to perform action 'Microsoft.ServiceBus/namespaces/write' over scope '/subscriptions/adb1c381-b337-4db1-889b-e8dae5fbb822/resourceGroups/vccrg/providers/Microsoft.ServiceBus/namespaces/namespace3c633290e'.: The client '1b62a9c3-d97f-41cb-965f-388b65f2a78d' with object id '1b62a9c3-d97f-41cb-965f-388b65f2a78d' does not have authorization to perform action 'Microsoft.ServiceBus/namespaces/write' over scope '/subscriptions/adb1c381-b337-4db1-889b-e8dae5fbb822/resourceGroups/vccrg/providers/Microsoft.ServiceBus/namespaces/namespace3c633290e'.
at com.microsoft.azure.AzureClient.createExceptionFromResponse(AzureClient.java:724)
at com.microsoft.azure.AzureClient.access$100(AzureClient.java:33)
at com.microsoft.azure.AzureClient$3.call(AzureClient.java:160)
at com.microsoft.azure.AzureClient$3.call(AzureClient.java:157)