4
votes

I was trying to achieve the following scenario:

  • Create a service bus queue via the API.

  • Send a message to that queue.

Using C#. If it was in AWS, I would need a couple of lines of code, and I need 3 pieces of information which are very easy to get, but it doesn't seem to be the case in Azure...

The pieces of information I realized that I need so far: ClientId

ClientSecret

ServiceBusConnectionString

ServiceBusNamespace

QueueName

ResourceGroupName

TenantId How to get the azure account tenant Id?

SubscriptionId

After hours of research, I was able to collect everything apart from the first two items, ClientId and ClientSecret, where I can get them?

EDIT Which one is the client ID?

enter image description here

Thanks

1

1 Answers

2
votes

You have to register your app in Azure AD to get your clientid & client secret.

Follow these steps to register in AAD. Note down the key (client secret) as it will not appear again anywhere.

Synopsis:

  1. Login @ Azure portal
  2. Search 'Azure Active Directory' on top bar & open
  3. Go to 'App Registrations' & add your app
  4. Get the client id (this is Application ID & NOT Object ID) & add key (this is client secret)