Skip to content

Commit c2f8bf9

Browse files
authored
Update enable-api-analysis-linting.md
Specifiy Azure API Center Compliance Manager role
1 parent 3e8e8d5 commit c2f8bf9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

articles/api-center/enable-api-analysis-linting.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,16 @@ Follow these steps to deploy the Azure Functions app that runs the linting funct
8585

8686
To enable the function app to access the API center, configure a managed identity for the function app. The following steps show how to enable and configure a system-assigned managed identity for the function app using the Azure portal or the Azure CLI.
8787

88-
> [!NOTE]
89-
> In preview, this scenario requires the Contributor role to be assigned to the function app's managed identity.
90-
91-
9288
#### [Portal](#tab/portal)
9389

9490
1. In the Azure portal, navigate to your function app and select **Identity** under the **Settings** section.
9591
1. On the **System assigned** tab, set the **Status** to **On** and then select **Save**.
9692

97-
Now that the managed identity is enabled, assign it the Contributor role to access the API center.
93+
Now that the managed identity is enabled, assign it the Azure API Center Compliance Manager role to access the API center.
9894

9995
1. In the Azure portal, navigate to your API center and select **Access control (IAM)**.
10096
1. Select **+ Add > Add role assignment**.
101-
1. Select **Privileged administrator roles** and then select **Contributor**. Select **Next**.
97+
1. Select **Privileged administrator roles** and then select **Azure API Center Compliance Manager**. Select **Next**.
10298
1. On the **Members** page, in **Assign access to**, select **Managed identity > + Select members**.
10399
1. On the **Select managed identities** page, search for and select the managed identity of the function app. Click **Select** and then **Next**.
104100
1. Review the role assignment, and select **Review + assign**.
@@ -136,12 +132,12 @@ Now that the managed identity is enabled, assign it the Contributor role to acce
136132
--query "id" --output tsv)
137133
```
138134
139-
1. Assign the function app's managed identity the Contributor role in the API center using the [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create) command.
135+
1. Assign the function app's managed identity the Azure API Center Compliance Manager role in the API center using the [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create) command.
140136
141137
```azurecli
142138
#! /bin/bash
143139
az role assignment create \
144-
--role "Contributor" \
140+
--role "Azure API Center Compliance Manager" \
145141
--assignee-object-id $principalID \
146142
--assignee-principal-type ServicePrincipal \
147143
--scope $apicID
@@ -150,7 +146,7 @@ Now that the managed identity is enabled, assign it the Contributor role to acce
150146
```azurecli
151147
# PowerShell syntax
152148
az role assignment create `
153-
--role "Contributor" `
149+
--role "Azure API Center Compliance Manager" `
154150
--assignee-object-id $principalID `
155151
--assignee-principal-type ServicePrincipal `
156152
--scope $apicID

0 commit comments

Comments
 (0)