PLEASE NOTEWhile you can discover these details one at a time, we recommend keeping each of them together in a document for reference. This way, you won’t lose your place if one part takes longer - additionally, several ID's that you will generate in this walkthrough are only available onceas such, the final step in each section is to save the information in a Text Editor of your choice. Be sure to do this before moving on as you may not be able to re-access it if you move forward in the walkthrough.


Additionally, whilst most of this walkthrough can be completed by anyone with subscription access, you will need Ownership permissions to complete the "Give the Client ID permission to Contribute to the Subscription" section of this guide. For more information see: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal#required-permissions


Create the Client ID

1. Navigate to ‘App Registrations’ blade (via Azure Active Directory) or follow the link included here.

2. Select ‘+ New application registration’

3. Enter name based on your naming convention

4. Select ‘Web app / API’ application type

5. Enter a Sign-on URL NB: Although this is a required field, this URL is not used and can be changed later.It can actually be anything: as long as it looks like a URL

6. Select ‘Create’ Button, the app properties will open in a new blade

7. Hover over ‘Application ID’ field and select copy icon

8. Save to text Editor as ‘Client ID’



Create the Client Secret

1. Continuing from “Create the Client ID”, click the ‘Settings’ icon

2. Select ‘Keys’ from the Settings menu

3. Enter a Name in the ‘Key description’ field

4. Set a duration

5. Select the ‘Save’ Icon, the key value will be created and display in the Value field

6. Copy Value (use Ctrl-C as there is no copy button)

7. Save in text editor as ‘Client Secret’


Find Tenant ID

1. Open Azure Portal

2. Navigate to ‘Azure Active Directory’, the blade will open

3. Select ‘Properties’ from ‘Manage’ menu

4. Copy the ‘Directory ID’

5. Save to text editor as ‘Tenant ID’


Find Subscription ID

1. Navigate to ‘Cost Management + Billing’ blade

2. Scroll to ‘Other subscriptions’ table

3. Select the and copy ‘Subscription ID’

4. Save as in text editor as ‘Subscription ID’


Give the Client ID permission to Contribute to the Subscription

1. Note the previously acquired Client ID, it will make this section easier.

2. Select 'Access control (IAM)' from the menu

3. Select '+ Add' icon. (You will need Ownership permissions to complete this part. See: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal#required-permissions)

4. From the drop-down select "Add role assignment"

5. Select 'Contributor' role from 'Add permissions' menu

6. Paste Client ID (from the previous step) in 'Select' field application will appear in the 'Selected members' table

7. Click the User, Select 'Save', the menu will close and you will be back in the 'Subscription' blade