You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-center/enable-api-analysis-linting.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,20 +85,16 @@ Follow these steps to deploy the Azure Functions app that runs the linting funct
85
85
86
86
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.
87
87
88
-
> [!NOTE]
89
-
> In preview, this scenario requires the Contributor role to be assigned to the function app's managed identity.
90
-
91
-
92
88
#### [Portal](#tab/portal)
93
89
94
90
1. In the Azure portal, navigate to your function app and select **Identity** under the **Settings** section.
95
91
1. On the **System assigned** tab, set the **Status** to **On** and then select **Save**.
96
92
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.
98
94
99
95
1. In the Azure portal, navigate to your API center and select **Access control (IAM)**.
100
96
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**.
102
98
1. On the **Members** page, in **Assign access to**, select **Managed identity > + Select members**.
103
99
1. On the **Select managed identities** page, search for and select the managed identity of the function app. Click **Select** and then **Next**.
104
100
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
136
132
--query "id" --output tsv)
137
133
```
138
134
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.
140
136
141
137
```azurecli
142
138
#! /bin/bash
143
139
az role assignment create \
144
-
--role "Contributor" \
140
+
--role "Azure API Center Compliance Manager" \
145
141
--assignee-object-id $principalID \
146
142
--assignee-principal-type ServicePrincipal \
147
143
--scope $apicID
@@ -150,7 +146,7 @@ Now that the managed identity is enabled, assign it the Contributor role to acce
0 commit comments