Unable to set API Management Min API version

Marc Milliken 20 Reputation points
2024-05-08T13:57:18.5433333+00:00

Hi,

I am trying to set the apiVersionConstraint minApiVersion property for my APIM instance to satisfy the security concern; "API Management minimum API version should be set to 2019-12-01 or higher".

I am provisioning my APIM instance with the following bicep:

resource apiManagementService 'Microsoft.ApiManagement/service@2023-05-01-preview' = {
  name: apimServiceName
  location: location
  identity: {
    type: 'SystemAssigned'
  }
  sku: {
    name: 'BasicV2'
    capacity: 1
  }
  properties: {
    publisherEmail: 'xxxxxxxxxxxxxxx@xxxxxxx.com'
    publisherName: 'xxxxxxxxxxxxxxxxxxxxxxx'
    apiVersionConstraint: {
      minApiVersion: '2021-08-01'
    }
    developerPortalStatus: 'Disabled'    
  }
  tags: tags
}


However, this property appears to come through as null when I check the APIM instance on the portal:

User's image

I have also tried to set the value manually with the REST API with no luck.

Am I missing something when trying to set this value?

Thanks

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,792 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 21,966 Reputation points
    2024-05-09T05:41:29.3933333+00:00

    @Marc Milliken Thanks for reaching out. I see that you're trying to update the MinApiversion for your basicv2 sku and it remains null, the minApiVersion property is not required for the BasicV2 SKU of API Management (users no need to set minApiVersion themselves as v2 sku's uses centralized management api and it is controlled from service end).

    Note: The minApiVersion property will be deprecated in the near future as older API versions are retired.

    do let me know incase of further queries, I would be happy to assist you.

    Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful