How to setup Azure Service Bus Relay to use with ACS

In August 2014 Microsoft decided to remove Microsoft Azure Active Directory Access Control (also known as Access Control Service or ACS) from the default Azure Portal setup when creating a new Service Bus Namespace.   Shared Access Signature (SAS) is now default.

Service Bus authentication through ACS is managed through a companion “-sb” ACS namespace and to create this we now need to do it from the Azure Power Shell command line (thanks Microsoft!)

To do this:

Download the PowerShell console

Open up the Console and type


and then type in the email address and password associated with your account (Work or Microsoft)

Once authenticated you need to create the Service Bus Namespace so it's good to go for ACS.

To do this you use the New-AzureSBNamespace command

Parameter Set: Default
New-AzureSBNamespace [-Name] <String> [[-Location] <String> ] [[-CreateACSNamespace] <Boolean> ] [-NamespaceType] <NamespaceType> [ <CommonParameters>]

As an example:

New-AzureSBNamespace "MyNamespace" "North Europe" -CreateACSNamespace $true "Messaging"
As long as the params are correct and the namespace hasn't already been taken then after a minute or two the command line should respond with information about your newly created Service Bus Namespace (you should also see this in the Azure Portal).

Once you have set this up you should be able to configure ACS via this URL

https://<your namespace name>

As an example:

You can remove the Namespace by typing the following into the PowerShell command line

Remove-AzureSBNamespace "<your namespace name">

As an example:

Remove-AzureSBNamespace "MyNamespace" 



Service Bus Authentication and Authorization

How to install and configure Azure PowerShell


Popular posts from this blog

System.UnauthorizedAccessException error with Visual Studio and Xamarin

Xamarin Forms - InitializeComponent does not exist in the current context