stephaneey / azure-apim-extension

Full Azure API Management suite and more VSTS extension
MIT License
66 stars 49 forks source link

apimoperationpolicies does not take into account api version [Critical we can't deploy with new minimum version] #136

Open jfborie opened 5 months ago

jfborie commented 5 months ago
        - task: apimoperationpolicies@4
          inputs:
            ConnectedServiceNameARM: ${{ parameters.azureSubscription }}
            ResourceGroupName: '$(apimResourceGroupName)'
            ApiPortalName: '$(apimResourceName)'
            ApiName: '${{ releaseObject.targetapi }}'
            OperationName: 'StarOperation'
            CurrentRevision: true
            TemplateSelector: 'Custom'
            Custom: |
                <policies>
                    <inbound>
                    </inbound>
                    <backend>
                        <base />
                    </backend>
                    <outbound>
                        <base />
                    </outbound>
                    <on-error>
                        <base />
                    </on-error>
                </policies>
            MicrosoftApiManagementAPIVersion: '2021-08-01' <== here added

With the new minimum version required on apim we can't deploy