From 2a10ff70c352a0b859d65f390e81dec4770c5375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Mu=CC=88nch?= Date: Tue, 2 Apr 2024 11:54:04 +0200 Subject: [PATCH] fix the az command to list the created entra id role 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 07af669c..41c86425 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 6b53d036..4b002c37 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: