Skip to content

How are you getting the credentials to be put into the file based credentials #2

@viswax2000

Description

@viswax2000

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions