| title | Include file |
|---|---|
| description | Include file |
| services | api-center |
| ms.service | azure-api-center |
| ms.topic | include |
| ms.date | 12/20/2024 |
| ms.custom | Include file |
For this scenario, your API center uses a managed identity to access Azure resources. Depending on your needs, enable either a system-assigned or one or more user-assigned managed identities.
The following examples show how to enable a system-assigned managed identity by using the Azure portal or the Azure CLI. At a high level, configuration steps are similar for a user-assigned managed identity.
- In the portal, go to your API center.
- In the sidebar menu, under Security, select Managed identities.
- Select System assigned, and set the status to On.
- Select Save.
Set the system-assigned identity in your API center using the following az apic update command. Substitute the names of your API center and resource group:
az apic update --name <api-center-name> --resource-group <resource-group-name> --identity '{"type": "SystemAssigned"}'