Windows Azure Active Directory manages users, who can access your Simple Azure Virtual Machines Manager. In current version all users in your Active Directory can access SAVMM and no Access Control List is supported. Maybe in future version.

By default each subscription contains at least 1 Active Directory. You can use this one or create completely new Active Directory. In following description I use existing Active Directory.

Create Active Directory application

Open Windows Azure Management Portal. Open Active Directory section.


Select Active Directory you want to use for authentication and go to Applications tab.


Click Add an application button. Select Add an application my organization is developing.


Specify name of the application and select that it is web application.


On the next page specify following settings:
  • Sign-on URL: URL of your application, where you plan to deploy SAVMM. Don't forget to specify HTTPS protocol.
  • App ID URI: unique identifier of your application. It can be same as application URL (Sign-on URL).



Update Web.config

In Windows Azure Portal open Active Directory Application you just created. In bottom bar click View Endpoints.


Copy Federation Metadata Document URL to clipboard.

Open Web.config file in Web folder of deployment package.

Find setting ida:FederationMetadataLocation and set value attribute to URL Federation Metadata Document from previous step.
    <add key="ida:FederationMetadataLocation" value="" />

Find element system.identityModel and go to element system.identityModel/identityConfiguration/securityTokenHandlers/securityTokenHandlerConfiguration/audienceUris/add and set value attribute to App ID URI you specified, when creating Active Directory Application. If you don't remember, you can find it in Configuration tab of you Active Directory Application.
          <issuerNameRegistry type="Duracellko.WindowsAzureVmManager.Identity.CacheIssuerNameRegistry, Duracellko.WindowsAzureVmManager.Identity" />
            <add value="" />
          <certificateValidation certificateValidationMode="None" />
        <add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, System.IdentityModel.Services, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler, System.IdentityModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

Find wsFederation element in element. Change following attributes:
  • issuer: replace {active_directory_id} with unique identifier from Federation Metadata Document URL that can be found in View Endpoints window.
  • realm: set to App ID URI (from Configuration tab).
      <cookieHandler requireSsl="true" />
      <wsFederation passiveRedirectEnabled="true" issuer="" realm="" requireHttps="true" />

Save Web.config file.

Create new user

In Windows Azure Portal open Active Directory section and open Active Directory you use for authentication.
Open Users tab.


Click Add user at bottom bar.
Select option "New user in your organization" and type user name.


On the next page enter user details.


On next page click create.


On the next page user password is shown. Either save it in safe place or send it to a specific email. Keep in mind that this is temporary password and user will be asked to change it after first login.


Now user is created. This user can login to your Simple Azure Virtual Machine Manager.

Next step is to Deploy Web site

Last edited Apr 17, 2014 at 1:51 PM by Duracellko, version 5