Using Powershell, how to you add a version to an azure api management API?
Im using New-AzureRmApiManagementApi
to create the API, and using version 5.1.2 of AzureRM.ApiManagement
Using Powershell, how to you add a version to an azure api management API?
Im using New-AzureRmApiManagementApi
to create the API, and using version 5.1.2 of AzureRM.ApiManagement
I have implemented an Azure API Management Version Set under APIM via Azure REST API in PowerShell.
With reference of Api-versioning-with-swagger-azure-api-management-services
Microsoft Azure PowerShell documentation doesn't contain any hints and I couldn't find any examples of it on the internet so far. It seems to be not possible versioning API inside APIM using the Swagger Open API format with cmdlet though Import-AzureRmApiManagementApi and New-AzureRmApiManagementApiVersionSet Powershell cmdlet is available .
While searching for a solution, I came across this post from Ronald Wildenberg where he uses direct REST API calls in his Powershell script, instead of cmdlets, and that's how he manages to create a versioned API inside Azure API Manager.
To add the module version you can use the command
Install-Module -Name AzureRM.ApiManagement -RequiredVersion 6.0.0
For further information check this link PowerShell gallery