Creation of ACS and SAS in Azure - CloudFronts

Creation of ACS and SAS in Azure

Posted On October 21, 2015 by Posted in 

ACS is an Azure service that provides an easy way to authenticate users to access web applications and services without having to add complex authentication logic to code. While SAS is used to access resources in storage account which includes both primary and secondary keys.

Assumptions

Azure Account should be added in PowerShell with respective User’s Credentials.

Note: For Adding account In Microsoft Azure PowerShell refer to following link:

https://www.cloudfronts.com/azure-console-login-logout-using-azure-powershell/

Steps in Microsoft Azure PowerShell for ACS

 

Step 1: Write ACS Command in PowerShell

ACS Key can be created using Azure PowerShell following command,

New-AzureSBNamespace GravityDocument -Location “Southeast Asia” -CreateACSNamespace $true -NamespaceType Messaging

Command requires Service Bus Namespace Name, Location and Messaging type.

 
1

 

Step 2: ACS Information on Azure Portal

This ACS Key information can be seen on Microsoft Azure Account with that corresponding service bus namespace provided in the command above.

2

 

Once the Namespace is created the corresponding Connection Information is available at the bottom under Connection Information.

3

Steps in Microsoft Azure for SAS

Here for SAS Key we have created Queue inside the namespace.
 

Step 1: Creation of Queue

Now Queue can be created inside this specified Namespace, for that follow the below screenshots

4

 
5

 
6

 
Specify the required details i.e. the Queue name under the specified namespace.

7

 

Step 2: Key with Permissions

Now since the queue is created SAS key can also be generated with different permissions like Manage, Listen & Send.

So under Configure option, under Shared Access Policies specify the name and permission to be given for that particular queue.
 
8

 
9

 

Now SAS key for that particular queue can be obtained from Connection Information of Queue with SAS key.

10

 

Conclusion

Thus, we can Create ACS and SAS requests as per requirements using Microsoft Azure PowerShell and Azure Portal.


Share Story :

Secured By miniOrange