Skip to content

Commit ffbe401

Browse files
author
gitName
committed
fixes
1 parent 6d9ac7f commit ffbe401

File tree

5 files changed

+5
-136
lines changed

5 files changed

+5
-136
lines changed

articles/api-center/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
href: manage-apis-azure-cli.md
3939
- name: Import APIs from API Management
4040
href: import-api-management-apis.md
41+
- name: Synchronize APIs from APIIIS Management
42+
href: synchronize-api-management-apis.md
4143
- name: Build and register APIs - VS Code extension
4244
href: build-register-apis-vscode-extension.md
4345
- name: Register APIs - GitHub Actions

articles/api-center/import-api-management-apis.md

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -134,71 +134,6 @@ When you add APIs from an API Management instance to your API center using `az a
134134

135135
[!INCLUDE [configure-managed-identity-apim-reader](includes/configure-managed-identity-apim-reader.md)]
136136

137-
#### [Portal](#tab/portal)
138-
139-
1. In the [portal](https://azure.microsoft.com), navigate to your API Management instance.
140-
1. In the left menu, select **Access control (IAM)**.
141-
1. Select **+ Add role assignment**.
142-
1. On the **Add role assignment** page, set the values as follows:
143-
1. On the **Role** tab - Select **API Management Service Reader**.
144-
1. On the **Members** tab, in **Assign access to** - Select **Managed identity** > **+ Select members**.
145-
1. On the **Select managed identities** page - Select the system-assigned managed identity of your API center that you added in the previous section. Click **Select**.
146-
1. Select **Review + assign**.
147-
148-
#### [Azure CLI](#tab/cli)
149-
150-
1. Get the principal ID of the identity. For a system-assigned identity, use the [az apic show](/cli/azure/apic#az-apic-show) command.
151-
152-
```azurecli
153-
#! /bin/bash
154-
apicObjID=$(az apic show --name <api-center-name> \
155-
--resource-group <resource-group-name> \
156-
--query "identity.principalId" --output tsv)
157-
```
158-
159-
```azurecli
160-
# Formatted for PowerShell
161-
$apicObjID=$(az apic show --name <api-center-name> `
162-
--resource-group <resource-group-name> `
163-
--query "identity.principalId" --output tsv)
164-
```
165-
166-
1. Get the resource ID of your API Management instance using the [az apim show](/cli/azure/apim#az-apim-show) command.
167-
168-
```azurecli
169-
#! /bin/bash
170-
apimID=$(az apim show --name <apim-name> --resource-group <resource-group-name> --query "id" --output tsv)
171-
```
172-
173-
```azurecli
174-
# Formatted for PowerShell
175-
$apimID=$(az apim show --name <apim-name> --resource-group <resource-group-name> --query "id" --output tsv)
176-
```
177-
178-
1. Assign the managed identity the **API Management Service Reader** role in your API Management instance using the [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create) command.
179-
180-
```azurecli
181-
#! /bin/bash
182-
scope="${apimID:1}"
183-
184-
az role assignment create \
185-
--role "API Management Service Reader Role" \
186-
--assignee-object-id $apicObjID \
187-
--assignee-principal-type ServicePrincipal \
188-
--scope $scope
189-
```
190-
191-
```azurecli
192-
# Formatted for PowerShell
193-
$scope=$apimID.substring(1)
194-
195-
az role assignment create `
196-
--role "API Management Service Reader Role" `
197-
--assignee-object-id $apicObjID `
198-
--assignee-principal-type ServicePrincipal `
199-
--scope $scope
200-
---
201-
202137
### Import APIs from API Management
203138

204139
Use the [az apic import-from-apim](/cli/azure/apic#az-apic-import-from-apim) command to import one or more APIs from your API Management instance to your API center.

articles/api-center/includes/configure-managed-identity-apim-reader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.author: danlep
1111
ms.custom: Include file
1212
---
1313

14-
To allow import of APIs, assign your API center's managed identity the **API Management Service Reader** role in your API Management instance. You can use the [portal](../role-based-access-control/role-assignments-portal-managed-identity.yml) or the Azure CLI.
14+
To allow import of APIs, assign your API center's managed identity the **API Management Service Reader** role in your API Management instance. You can use the [portal](../../role-based-access-control/role-assignments-portal-managed-identity.yml) or the Azure CLI.
1515

1616
#### [Portal](#tab/portal)
1717

articles/api-center/includes/enable-managed-identity.md

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -31,71 +31,3 @@ az apic update --name <api-center-name> --resource-group <resource-group-name> -
3131
```
3232
---
3333

34-
### Assign the managed identity the API Management Service Reader role
35-
36-
To allow import of APIs, assign your API center's managed identity the **API Management Service Reader** role in your API Management instance. You can use the [portal](../role-based-access-control/role-assignments-portal-managed-identity.yml) or the Azure CLI.
37-
38-
#### [Portal](#tab/portal)
39-
40-
1. In the [portal](https://azure.microsoft.com), navigate to your API Management instance.
41-
1. In the left menu, select **Access control (IAM)**.
42-
1. Select **+ Add role assignment**.
43-
1. On the **Add role assignment** page, set the values as follows:
44-
1. On the **Role** tab - Select **API Management Service Reader**.
45-
1. On the **Members** tab, in **Assign access to** - Select **Managed identity** > **+ Select members**.
46-
1. On the **Select managed identities** page - Select the system-assigned managed identity of your API center that you added in the previous section. Click **Select**.
47-
1. Select **Review + assign**.
48-
49-
#### [Azure CLI](#tab/cli)
50-
51-
1. Get the principal ID of the identity. For a system-assigned identity, use the [az apic show](/cli/azure/apic#az-apic-show) command.
52-
53-
```azurecli
54-
#! /bin/bash
55-
apicObjID=$(az apic show --name <api-center-name> \
56-
--resource-group <resource-group-name> \
57-
--query "identity.principalId" --output tsv)
58-
```
59-
60-
```azurecli
61-
# Formatted for PowerShell
62-
$apicObjID=$(az apic show --name <api-center-name> `
63-
--resource-group <resource-group-name> `
64-
--query "identity.principalId" --output tsv)
65-
```
66-
67-
1. Get the resource ID of your API Management instance using the [az apim show](/cli/azure/apim#az-apim-show) command.
68-
69-
```azurecli
70-
#! /bin/bash
71-
apimID=$(az apim show --name <apim-name> --resource-group <resource-group-name> --query "id" --output tsv)
72-
```
73-
74-
```azurecli
75-
# Formatted for PowerShell
76-
$apimID=$(az apim show --name <apim-name> --resource-group <resource-group-name> --query "id" --output tsv)
77-
```
78-
79-
1. Assign the managed identity the **API Management Service Reader** role in your API Management instance using the [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create) command.
80-
81-
```azurecli
82-
#! /bin/bash
83-
scope="${apimID:1}"
84-
85-
az role assignment create \
86-
--role "API Management Service Reader Role" \
87-
--assignee-object-id $apicObjID \
88-
--assignee-principal-type ServicePrincipal \
89-
--scope $scope
90-
```
91-
92-
```azurecli
93-
# Formatted for PowerShell
94-
$scope=$apimID.substring(1)
95-
96-
az role assignment create `
97-
--role "API Management Service Reader Role" `
98-
--assignee-object-id $apicObjID `
99-
--assignee-principal-type ServicePrincipal `
100-
--scope $scope
101-
---

articles/api-center/synchronize-api-management-apis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ When you link an API Management instance to an API center, the following happens
2525
* All APIs and related API specifications from the API Management instance are imported to the API center inventory.
2626
* An [environment](key-concepts.md#environment) is created in the API center.
2727

28-
API Management APIs automatically synchronize to the API center whenever there are changes detected to existing API properties, new versions are added, new APIs are created, or APIs are deleted. This synchronization is one-way from API Management to your Azure API center, meaning API updates in the API center are not synchronized back to the API Management instance.
28+
API Management APIs automatically synchronize to the API center whenever there are changes detected to existing API properties, new versions are added, new APIs are created, or APIs are deleted. This synchronization is one-way from API Management to your Azure API center, meaning API updates in the API center aren't synchronized back to the API Management instance.
2929

3030
> [!NOTE]
31-
> * Certain properties of API Management APIs such as the name, description, and API definition can't be edited in the API center.
31+
> * Certain properties of API Management APIs such as the name, description, and API definition can't be edited in the API center, and synchronized APIs can't be deleted from your API center.
3232
> * Links to API Management instances are subject to [certain limits](../azure-resource-manager/management/azure-subscription-service-limits.md?toc=/azure/api-center/toc.json&bc=/azure/api-center/breadcrumb/toc.json#api-center-limits) on number of links and frequency of synchronization.
3333
3434

0 commit comments

Comments
 (0)