Updating an API definition in Azure API Management
Import a file to Azure API Management to update an existing definition.
Before you begin
- You have access to Azure API Manangement.
- You have installed Microsoft PowerShell. For more information, see the Microsoft PowerShell documentation.
- You have installed the Azure PowerShell module. For more information, see the Microsoft Azure documentation.
- You have exported your API definition.
- You have uploaded a previous version of the API definition to Azure API Management.
- You have set your context parameters as a variable. For more information, see the procedure above.
Procedure
Results
Your API definition is imported and the new file replaces the previous version. You can check your update on the Azure portal.
In this example, a first version of the API definition named Contacts API, which contained five operations was uploaded. Then, it was replaced with a new definition named Contacts API V2 containing ten operations.
For more information about the Import-AzApiManagementApi command, see the Azure documentation.