azure-maven-plugins
azure-maven-plugins copied to clipboard
Unable to specify deployment instance when deploying
Plugin name and version
azure-spring-cloud-maven-plugin, v1.7.0
Plugin configuration in your pom.xml
<configuration>
<subscriptionId>hidden-2963-4c18-915d-hidden</subscriptionId>
<clusterName>scs-hidden</clusterName>
<appName>sca-hidden</appName>
<isPublic>true</isPublic>
<deployment>
<cpu>2</cpu>
<memoryInGB>4</memoryInGB>
<instanceCount>1</instanceCount>
<runtimeVersion>Java 11</runtimeVersion>
<resources>
<resource>
<filtering/>
<mergeId/>
<targetPath/>
<directory>${project.basedir}/target</directory>
<includes>
<include>*.jar</include>
</includes>
</resource>
</resources>
</deployment>
</configuration>
Expected behavior
I should be able to specify which deployment in my application I should target when deploying; this is not available as a configuration option.
Actual behavior
It defaults to a deployment named "default". Azure Spring Cloud permits me to create named deployments.
Steps to reproduce the problem
Run a deployment
@indranil-chakraborty-thd hi, thanks for reporting this issue, we do have a <deploymentName>
which should meet your requirement, can you try?
<deployment>
<deploymentName>target-deployment-name</deploymentName>
<cpu>1</cpu>
<memoryInGB>1</memoryInGB>
<instanceCount>1</instanceCount>
<runtimeVersion>Java 11</runtimeVersion>
<resources>
<resource>
...
(but this option doesn't work for basic pricing tier, this bug would soon be fixed in the coming v0.19.0). We are really sorry that we didn't update the wiki.