Skip to content

Hard Coded API version in API call not compatible with Azure Stack Hub #361

@trx1

Description

@trx1

The function with the issue:

getSitePublishingCredentialPolicies() in azure-pipelines-tasks-common-packages/common-npm-packages/azurermdeploycommon/azure-arm-rest/azure-arm-app-service.ts

The issue:

This function passes api version '2022-03-01' which is not supported by Azure Stack Hub. This is called by Azure Devop's 'Azure App Service deploy' task (https://github.com/microsoft/azure-pipelines-tasks/tree/c61bf51acafa7f1b51b2b7271d766a0e5bdc6003/Tasks/AzureRmWebAppDeploymentV4) which is used on Azure DevOps Server. The upgrade of Azure DevOps Server installed the newer incompatible version which broke all deployments in our organization using that deployment task.

The fix:

Pass the API version of '2020-12-01' or better yet, check what versions are supported and don't use an unsupported version.

Line of code reference:

Bug introduced in this commit:

885a11f#diff-0a2aa407bd15f8009b4661e830703df84cef0cc4cced168290d308c3feaacb7a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions