I trying to create and deploy my small Java Spring application to Azure Spring Apps. With that I using Intellij Idea with Azure Plugin and/or maven azure-spring-apps-maven-plugin.
With Idea I can't setup deployment coz on create/recieve available apps in configuration form I get errors in notifications:
Azure: Failed to list Spring Apps of subscription(***), the HTTP resource that matches the request URI 'https://westeurope-gen2.resourceprovider.azureappplatform.io/subscriptions/***/resourceGroups/playground-resource-group/providers/Microsoft.AppPlatform/Spring/playground-apps' does not support the API version '2022-09-01-preview'.
Call Stack:
● List Spring Apps of subscription(***)
● !interal/common.load_combobox_items.type!
With Maven mvn azure-spring-apps:deploy I get:
[ERROR] Failed to preload Spring Appss, the HTTP resource that matches the request URI 'https://westeurope-gen2.resourceprovider.azureappplatform.io/subscriptions/***/resourceGroups/playground-re
source-group/providers/Microsoft.AppPlatform/Spring/playground-apps' does not support the API version '2022-09-01-preview'.
rx.exceptions.OnErrorNotImplementedException
at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call (InternalObservableUtils.java:386)
at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call (InternalObservableUtils.java:383)
parts of pom.xml:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.5</version>
</parent>
...
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-dependencies</artifactId>
<version>5.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
<build>
<plugins>
<plugin>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-apps-maven-plugin</artifactId>
<version>1.15.0</version>
...
</plugin>
</plugins>
</build>
Also noticed, that JSON resources for automation are empty for that API version (it exists for 2022-05 and 2022-11).
In same time CLI command works:
az spring app deploy --resource-group playground-resource-group --service playground-apps --name playground-app-dev --artifact-path target/playground-1.0.0.jar
Also tried EastUS location with same result.
So, can I solve that problem on my side or, maybe should I wait for api updates from maven plugin and jetbrains?