Registering with Azure
In order to deploy applications to Azure from the FAKE script created by the SAFE template, you first need to create an Azure account and create an App Registration which allows remote deployments as a one-off task. This section explains how to do this.
Creating an Azure Account
You'll need to register for an Azure account. This can be achieved quickly and easily at https://azure.microsoft.com. New users are afforded a number of services for free for an entire year, including Azure SQL, Storage and VMs etc.
Selecting a Subscription
Once you have created your account, you'll need to make a note of the Azure Subscription ID that you will deploy your SAFE applications into.
- Log in to your Azure Portal.
- Select All Services on the left-menu menu and locate Subscriptions in the blade on the right.
- Make a note of the Subscription ID of the subscription that you wish to deploy your application into. If you just created your Azure account, you'll most likely have a single subscription in the list.
Creating an App Registration
You now need to create an "App Registration" in your Azure Active Directory. This registration allows you to deploy an entire environment directly into Azure, complete with the deployed application, directly from a FAKE script.
- Navigate to the Azure Active Directory blade in the Portal.
- Select App registrations from the menu in the blade.
- Select New application registration.
- Enter the Name of your application as any name e.g SAFE Deploy
- Set the Application type as Native.
- Set the Redirect URI as any URI e.g
- Hit Create.
- Make a note of the Application ID on the blade.
- Choose Settings from the top menu.
- Choose Required Permissions from the Settings blade.
- Choose Add from the top menu of the Required Permissions blade.
- Choose Select an API from the Add API Access blade.
- Choose Windows Azure Service Management API and hit Select.
- Check Access Azure Service Management as organization users (preview) and hit Select.
- Hit Done from the Add API Access blade.
Congratulations - you're now ready to use the SAFE FAKE template to perform remote deployments.