Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 2.54 KB

README.md

File metadata and controls

40 lines (28 loc) · 2.54 KB

Web Portal for Automating Azure environment deployments

This repository includes reference code created by Microsoft, RISCO and U-BTech as part of a hackfest centered around DevOps. Please read the detailed technical case study to better understand the context and usage of this application:

Automating cloud deployments using Azure Resource Manager and Puppet with RISCO

The code in this repository is meant to be used as a reference to showcase how to automate Azure environment deployments using a web application.

The repository includes the code of an ASP.NET web portal which allows users to login using Azure Active Directory credentials and choose a predefined cloud environment to deploy. The web application then uses the Azure .NET SDK to request a deployment of a Resource Manager JSON template from the Azure Resource Manager.

To make use of this code, users need to edit the web.config file, specifically the <appSettings> section:

<appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="ida:ClientId" value="[Your Azure application client ID]" />
    <add key="ida:AADInstance" value="https://login.microsoftonline.com/" />
    <add key="ida:ClientSecret" value="[Your Azure application client secret]" />
    <add key="ida:Domain" value="[Azure AD domain]" />
    <add key="ida:TenantId" value="[Your tenant id]" />
    <add key="ida:PostLogoutRedirectUri" value="[Azure application reply URL]" />    
</appSettings>

To better understand how this project implements user authentication and makes use of the Azure SDK to interact with the Azure Resource Manager please see:

License

This project is licensed under MIT license.

Appreciation

Special thanks to Elad Hayun (U-BTech) who wrote most of the code published here.