Getting error "The HTTP resource that matches the request URI does not support the API version" while deploying Spring Boot app to Azure Spring Apps

arunabh priyadarshi 25 Reputation points
2023-07-28T08:39:47.5866667+00:00

I have created an Azure Spring App service to deploy my Spring Boot application. I also created Azure pipelines, and everything works fine to build and push artifacts. While I can directly upload a JAR and that works, I get the following error when I try to deploy the JAR via the release pipeline:

2023-07-27T10:00:07.3766866Z Starting deployment task execution
2023-07-27T10:00:07.3817918Z ##[warning]Resource file has already set to: D:\a\_tasks\AzureSpringCloud_5679292e-de0e-473a-948e-4874d2d8ef97\0.225.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-07-27T10:00:07.3827215Z global['_vsts_task_lib_loaded'] = true
2023-07-27T10:00:07.3827470Z Started getParameters
2023-07-27T10:00:07.3827763Z global['_vsts_task_lib_loaded'] = true
2023-07-27T10:00:08.9284421Z ##[error]Unable to get deployment information. Status Code: 400
2023-07-27T10:00:08.9290503Z ##[error]Deployment Failed with Error: {"statusCode":400,"message":"The HTTP resource that matches the request URI 'https://eastus-gen2.resourceprovider.azureappplatform.io/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.AppPlatform/Spring/algo/apps/tip-trading/deployments' does not support the API version '2022-03-01-preview'.","code":"UnsupportedApiVersion"}
2023-07-27T10:00:08.9292644Z ##[error]The HTTP resource that matches the request URI 'https://eastus-gen2.resourceprovider.azureappplatform.io/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.AppPlatform/Spring/algo/apps/tip-trading/deployments' does not support the API version '2022-03-01-preview'.
2023-07-27T10:00:08.9419946Z ##[section]Finishing: Azure Spring Apps Deploy: tip-trading
	

How can I solve this error?
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
109 questions
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,146 Reputation points
    2023-07-28T17:55:23.29+00:00

    arunabh priyadarshi Thanks for posting your question in Microsoft Q&A. Based on the description, I assume you use Azure Spring Apps task for Azure Pipelines to deploy the apps, but this task is supported only for Standard/Enterprise tiers. If you are using Consumption plan, you may face this error, and this is not supported yet. Our product team is working on this feature and unfortunately, no ETA available yet.

    User's image

    The workaround is to use AzureCLI v2 task instead of Azure Spring Cloud v0 task to deploy JAR files in the pipeline. For any feedback regarding this feature, please submit it via Azure Spring Cloud feedback and others with similar interests can upvote it too. This will help our product team prioritize the features and ideas.

    I hope this helps and let us know if you have any questions.


    If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful