mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #7015 from miguel-a-calles-mba/master
Clarifying Azure setup
This commit is contained in:
commit
83a486dbf0
@ -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": [],
|
||||
|
||||
@ -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**
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user