Open peeteto opened 7 months ago
Same here.
As a workaround you could use the AzureCLI@2
task instead.
Like so:
- task: AzureCLI@2
inputs:
azureSubscription: 'My Sub'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: 'az spring app deploy -s my-spring-app -g my-resourcegroup -n my-app --artifact-path "$(Pipeline.Workspace)/drop_xyz/my-app.jar"'
A quick test looked good so far.
Thanks for reporting this! We're working on making java runtime 17 and 21 available for AzureSpringCloudV0 task.
Hey, And is there any timeframe ?
@hol
Same here.
As a workaround you could use the
AzureCLI@2
task instead. Like so:- task: AzureCLI@2 inputs: azureSubscription: 'My Sub' scriptType: 'pscore' scriptLocation: 'inlineScript' inlineScript: 'az spring app deploy -s my-spring-app -g my-resourcegroup -n my-app --artifact-path "$(Pipeline.Workspace)/drop_xyz/my-app.jar"'
A quick test looked good so far.
This worked indeed! With the spring cloud task I had also issue with passing environment variables, using the az cli this is also fixed. Great!
New issue checklist
Task name
Azure Spring Apps
Task version
0.234.0
Issue Description
Azure spring apps documentation stated the following: https://learn.microsoft.com/en-us/azure/spring-apps/enterprise/concept-app-customer-responsibilities#java-runtime-version "You can choose any LTS Java version as the major version that's officially supported and receives regular updates."
They also made java 21 version available on Azure Spring Apps
But whenever we deploy our application, which uses java 21 as runtime at Azure Portal
It gives the following error
We just migrated most of our projects to java21, so this issue is very unfortunate..
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04.4
Relevant log output
Full task logs with system.debug enabled
Repro steps