Merge pull request #2785 from hhunter-ms/issue_2780

[integrations/azure] Update az cli commands
This commit is contained in:
greenie-msft 2022-09-14 15:47:23 -07:00 committed by GitHub
commit c2d4088c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View File

@ -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}"
``` ```

View File

@ -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`.