From b439199578f3700051d237becc1312b593e18d37 Mon Sep 17 00:00:00 2001 From: Dmitry Sitnikov Date: Mon, 5 Jul 2021 07:58:41 -0700 Subject: [PATCH] azureblob: Fix typo in Azure Blob help Change the command to create RBAC file to the correct one `az ad sp create-for-rbac` Add the link to the command documentation https://docs.microsoft.com/en-us/cli/azure/ad/sp?view=azure-cli-latest#az_ad_sp_create_for_rbac --- backend/azureblob/azureblob.go | 5 ++--- docs/content/azureblob.md | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go index fcfe9a75e..f109aaa0e 100644 --- a/backend/azureblob/azureblob.go +++ b/backend/azureblob/azureblob.go @@ -80,13 +80,12 @@ func init() { Leave blank normally. Needed only if you want to use a service principal instead of interactive login. - $ az sp create-for-rbac --name "" \ + $ az ad sp create-for-rbac --name "" \ --role "Storage Blob Data Owner" \ --scopes "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts//blobServices/default/containers/" \ > azure-principal.json -See [Use Azure CLI to assign an Azure role for access to blob and queue data](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) -for more details. +See ["Create an Azure service principal"](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli) and ["Assign an Azure role for access to blob data"](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) pages for more details. `, }, { Name: "key", diff --git a/docs/content/azureblob.md b/docs/content/azureblob.md index 0d255d26f..bc2acda43 100644 --- a/docs/content/azureblob.md +++ b/docs/content/azureblob.md @@ -166,13 +166,12 @@ Path to file containing credentials for use with a service principal. Leave blank normally. Needed only if you want to use a service principal instead of interactive login. - $ az sp create-for-rbac --name "" \ + $ az ad sp create-for-rbac --name "" \ --role "Storage Blob Data Owner" \ --scopes "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts//blobServices/default/containers/" \ > azure-principal.json -See [Use Azure CLI to assign an Azure role for access to blob and queue data](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) -for more details. +See ["Create an Azure service principal"](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli) and ["Assign an Azure role for access to blob data"](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) pages for more details. - Config: service_principal_file