mirror of https://github.com/dapr/docs.git
Merge pull request #2785 from hhunter-ms/issue_2780
[integrations/azure] Update az cli commands
This commit is contained in:
commit
c2d4088c71
|
@ -108,11 +108,7 @@ First, create the Azure AD application with:
|
||||||
APP_NAME="dapr-application"
|
APP_NAME="dapr-application"
|
||||||
|
|
||||||
# Create the app
|
# Create the app
|
||||||
APP_ID=$(az ad app create \
|
APP_ID=$(az ad app create --display-name "${APP_NAME}" | jq -r .appId)
|
||||||
--display-name "${APP_NAME}" \
|
|
||||||
--available-to-other-tenants false \
|
|
||||||
--oauth2-allow-implicit-flow false \
|
|
||||||
| jq -r .appId)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< tabs "Client secret" "Certificate">}}
|
{{< tabs "Client secret" "Certificate">}}
|
||||||
|
@ -124,8 +120,7 @@ To create a **client secret**, then run this command. This will generate a rando
|
||||||
```sh
|
```sh
|
||||||
az ad app credential reset \
|
az ad app credential reset \
|
||||||
--id "${APP_ID}" \
|
--id "${APP_ID}" \
|
||||||
--years 2 \
|
--years 2
|
||||||
--password $(openssl rand -base64 30)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The output of the command above will be similar to this:
|
The output of the command above will be similar to this:
|
||||||
|
@ -133,7 +128,6 @@ The output of the command above will be similar to this:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"appId": "c7dd251f-811f-4ba2-a905-acd4d3f8f08b",
|
"appId": "c7dd251f-811f-4ba2-a905-acd4d3f8f08b",
|
||||||
"name": "c7dd251f-811f-4ba2-a905-acd4d3f8f08b",
|
|
||||||
"password": "Ecy3XG7zVZK3/vl/a2NSB+a1zXLa8RnMum/IgD0E",
|
"password": "Ecy3XG7zVZK3/vl/a2NSB+a1zXLa8RnMum/IgD0E",
|
||||||
"tenant": "cd4b2887-304c-47e1-b4d5-65447fdd542b"
|
"tenant": "cd4b2887-304c-47e1-b4d5-65447fdd542b"
|
||||||
}
|
}
|
||||||
|
@ -164,7 +158,6 @@ The output of the command above should look like:
|
||||||
{
|
{
|
||||||
"appId": "c7dd251f-811f-4ba2-a905-acd4d3f8f08b",
|
"appId": "c7dd251f-811f-4ba2-a905-acd4d3f8f08b",
|
||||||
"fileWithCertAndPrivateKey": "/Users/alessandro/tmpgtdgibk4.pem",
|
"fileWithCertAndPrivateKey": "/Users/alessandro/tmpgtdgibk4.pem",
|
||||||
"name": "c7dd251f-811f-4ba2-a905-acd4d3f8f08b",
|
|
||||||
"password": null,
|
"password": null,
|
||||||
"tenant": "cd4b2887-304c-47e1-b4d5-65447fdd542b"
|
"tenant": "cd4b2887-304c-47e1-b4d5-65447fdd542b"
|
||||||
}
|
}
|
||||||
|
@ -190,7 +183,7 @@ Once you have created an Azure AD application, create a Service Principal for th
|
||||||
```sh
|
```sh
|
||||||
SERVICE_PRINCIPAL_ID=$(az ad sp create \
|
SERVICE_PRINCIPAL_ID=$(az ad sp create \
|
||||||
--id "${APP_ID}" \
|
--id "${APP_ID}" \
|
||||||
| jq -r .objectId)
|
| jq -r .id)
|
||||||
echo "Service Principal ID: ${SERVICE_PRINCIPAL_ID}"
|
echo "Service Principal ID: ${SERVICE_PRINCIPAL_ID}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,6 @@ When running the Dapr sidecar (daprd) with your application on EKS (AWS Kubernet
|
||||||
### Using with Minio
|
### Using with Minio
|
||||||
|
|
||||||
[Minio](https://min.io/) is a service that exposes local storage as S3-compatible block storage, and it's a popular alternative to S3 especially in development environments. You can use the S3 binding with Minio too, with some configuration tweaks:
|
[Minio](https://min.io/) is a service that exposes local storage as S3-compatible block storage, and it's a popular alternative to S3 especially in development environments. You can use the S3 binding with Minio too, with some configuration tweaks:
|
||||||
|
|
||||||
1. Set `endpoint` to the address of the Minio server, including protocol (`http://` or `https://`) and the optional port at the end. For example, `http://minio.local:9000` (the values depend on your environment).
|
1. Set `endpoint` to the address of the Minio server, including protocol (`http://` or `https://`) and the optional port at the end. For example, `http://minio.local:9000` (the values depend on your environment).
|
||||||
2. `forcePathStyle` must be set to `true`
|
2. `forcePathStyle` must be set to `true`
|
||||||
3. The value for `region` is not important; you can set it to `us-east-1`.
|
3. The value for `region` is not important; you can set it to `us-east-1`.
|
||||||
|
|
Loading…
Reference in New Issue