Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transitioning to "API Management - Create or update versioned API" #116

Open
sergeizak opened this issue Aug 25, 2021 · 0 comments
Open

Comments

@sergeizak
Copy link

Hi,

We are introducing versions to our APIs and going from working "API Management - Create or update API" task (v3.3.1) to a new task "API Management - Create or update versioned API". (v5.0.1)

However, we receive somewhat generic error message

You cannot call a method on a null-valued expression.

Here is what works

  • task: apim@3
    displayName: 'API Management - Create/Update Member Demo Api'
    inputs:
    ConnectedServiceNameARM: 'XYZ'
    ResourceGroupName: '$(apimResourceGroupName)'
    ApiPortalName: '$(apimName)'
    UseProductCreatedByPreviousTask: false
    product1: '$(apimProductName)'
    OpenAPISpec: 'v3'
    Format: 'json'
    Authorization: 'OAuth'
    oauth: 'okta-integration'
    SwaggerPicker: 'Url'
    swaggerlocation: 'http://$(lbIP)/swagger/v1/swagger.json'
    targetapi: '$(apiName)'
    pathapi: '$(apiURLSuffix)'
    MicrosoftApiManagementAPIVersion: '2018-01-01'

And here is new task (API versioning)

  • task: apimversioned@5
    inputs:
    ConnectedServiceNameARM: 'XYZ'
    CloudEnvironment: 'https://login.windows.net/'
    ResourceGroupName: 'npduseaintgrg'
    ApiPortalName: 'npduseaintgapimce18c1dff3'
    OpenAPISpec: 'v3'
    Format: 'json'
    UseProductCreatedByPreviousTask: true
    Authorization: 'OAuth'
    oauth: 'okta-integration'
    SwaggerPicker: 'Url'
    swaggerlocation: 'http://$(lbIP)/swagger/v1/swagger.json'
    targetapi: '$(apiName)'
    version: 'v1'
    NewRevision: false
    scheme: 'Header'
    VersionHeader: 'X-Api-Version'
    MicrosoftApiManagementAPIVersion: '2019-01-01'

Thank you for you time and attention to this. Let me know if I can provide any more details/logs.

Regards
Sergei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant