From 397f84e56f1b50900e1c89f3d47ed86e65a9f926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCnch?= Date: Tue, 2 Apr 2024 20:26:36 +0200 Subject: [PATCH] fix the az command to list the created entra id role (#89) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick Münch --- .../platform/infra/cloud/azure/azure-integration-scan-group.mdx | 2 +- .../infra/cloud/azure/azure-integration-scan-subscription.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/platform/infra/cloud/azure/azure-integration-scan-group.mdx b/docs/platform/infra/cloud/azure/azure-integration-scan-group.mdx index 07af669cc..41c86425a 100644 --- a/docs/platform/infra/cloud/azure/azure-integration-scan-group.mdx +++ b/docs/platform/infra/cloud/azure/azure-integration-scan-group.mdx @@ -190,7 +190,7 @@ Follow these steps, substituting the management group ID(s) you copied in Step A 3. Make sure you successfully created the role: ``` - az role assignment list --role mondoo-role --scope /providers/Microsoft.Management/managementGroups/YOUR-GROUP-ID + az role definition list --output json --query '[].{roleName:roleName, description:description}' --name "mondoo-role" ``` 4. Assign the created custom role to the app you registered: diff --git a/docs/platform/infra/cloud/azure/azure-integration-scan-subscription.mdx b/docs/platform/infra/cloud/azure/azure-integration-scan-subscription.mdx index 6b53d036f..4b002c374 100644 --- a/docs/platform/infra/cloud/azure/azure-integration-scan-subscription.mdx +++ b/docs/platform/infra/cloud/azure/azure-integration-scan-subscription.mdx @@ -222,7 +222,7 @@ Follow these steps, substituting the subscription ID(s) you copied in Step A for 3. Make sure you successfully created the role: ```bash - az role assignment list --role mondoo-role --scope /subscriptions/YOUR-SUBSCRIPTION-ID + az role definition list --output json --query '[].{roleName:roleName, description:description}' --name "mondoo-role" ``` 4. Assign the created custom role to the app you registered: