Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring App Maven deployment does not support "blue-green" deployment strategy #2475

Open
eamell opened this issue Jul 23, 2024 · 0 comments
Open

Comments

@eamell
Copy link

eamell commented Jul 23, 2024

Plugin name and version

Plugin Name - azure-spring-apps-maven-plugin
Plugin Version - 1.19.0

Plugin configuration in your pom.xml

    <profile>
      <id>azure-deployment</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>properties-maven-plugin</artifactId>
            <version>1.2.1</version>
            <executions>
              <execution>
                <id>read-props</id>
                <phase>initialize</phase>
                <goals>
                  <goal>read-project-properties</goal>
                </goals>
                <configuration>
                  <files>
                    <file>azure-deploy.properties</file>
                  </files>
                </configuration>
              </execution>
            </executions>
          </plugin>

          <plugin>
            <groupId>com.microsoft.azure</groupId>
            <artifactId>azure-spring-apps-maven-plugin</artifactId>
            <version>1.19.0</version>
            <configuration>
              <authType>service_principal</authType>
              <auth>
                <type>service_principal</type>
                <client>${azure-deploy-client-id}</client>
                <key>${azure-deploy-client-secret}</key>
                <tenant>${azure-deploy-tenant}</tenant>
                <environment>${azure-deploy-environment}</environment>
              </auth>
              <subscriptionId>${azure-deploy-subscription-id}</subscriptionId>
              <clusterName>${azure-deploy-cluster}</clusterName>
              <appName>${azure-deploy-spring-app-name}</appName>
              <sku>${azure-spring-apps-sku}</sku>
              <resourceGroup>panorama</resourceGroup>
              <deployment>
                <runtimeVersion>Java 17</runtimeVersion>
                <deploymentName>${azure-spring-app-deployment-name}</deploymentName>
              </deployment>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

Expected behavior

The value of the variable azure-spring-app-deployment-name would be used to create or update a deployment of the application.

Actual behavior

The Spring application is deployed to the default deployment regardless of the value in the <deploymentName> tag.

Steps to reproduce the problem

Create a Spring App with a default deployment. Configure the deployment name to be something other than default (like demo, stage, dev, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant