Merge pull request #7015 from miguel-a-calles-mba/master

Clarifying Azure setup
This commit is contained in:
Mariusz Nowak 2019-11-27 17:31:45 +01:00 committed by GitHub
commit 83a486dbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 4 deletions

View File

@ -48,7 +48,7 @@ This will give you a code and prompt you to visit [aka.ms/devicelogin](https://a
$ az account list
{
"cloudName": "AzureCloud",
"id": "c6e5c9a2-a4dd-4c05-81b4-6bed04f913ea",
"id": "<subscriptionId>",
"isDefault": true,
"name": "My Azure Subscription",
"registeredProviders": [],

View File

@ -156,10 +156,29 @@ The getting started walkthrough illustrates the interactive login experience, wh
```bash
# Login to Azure
$ az login
# Set Azure Subscription for which to create Service Principal
```
This will yield something like:
```json
[
{
"cloudName": "<cloudName>",
"id": "<subscription-id>",
"isDefault": true,
"name": "<name>",
"state": "<state>",
"tenantId": "<tenantId>",
"user": {
"name": "<name>",
"type": "<user>"
}
}
]
```
3. Set Azure Subscription for which to create Service Principal
```bash
$ az account set -s <subscription-id>
```
3. Generate Service Principal for Azure Subscription
4. Generate Service Principal for Azure Subscription
```bash
# Create SP with unique name
$ az ad sp create-for-rbac --name <name>
@ -174,7 +193,7 @@ The getting started walkthrough illustrates the interactive login experience, wh
"tenant": "<tenantId>"
}
```
4. Set environment variables
5. Set environment variables
**Bash**