Giter VIP home page Giter VIP logo

Comments (8)

jdneo avatar jdneo commented on May 14, 2024

Hi @danyongliu

Currently Azure CLi login through service principal is not supported yet. For a work around, you can set the service principal in the Maven's setting.xml.

Check this for more details: https://github.com/Microsoft/azure-maven-plugins/blob/master/docs/common-configuration.md#authentication-method-1-use-the-maven-settingsxml-file

from azure-maven-plugins.

jdneo avatar jdneo commented on May 14, 2024

Related issue: Azure/azure-libraries-for-java#417

from azure-maven-plugins.

sohelsyed avatar sohelsyed commented on May 14, 2024

I still see an issue even with settings.xml

What did you pass in plugin configuration ? I am passing below

com.microsoft.azure azure-webapp-maven-plugin azure-auth ${functionAppName}

from azure-maven-plugins.

javisst avatar javisst commented on May 14, 2024

Hi! Is this still being worked on? We need this for our build pipelines.

from azure-maven-plugins.

Flanker32 avatar Flanker32 commented on May 14, 2024

Sorry for the delay
@sohelsyed In plugin configuration, we need to pass the authentication profile id and save the client/tenant/key into maven settings.xml, here is an example.

  • settings.xml
  <servers>
    <server>
      <id>verify</id>
      <configuration>
        <client>${CLIENT ID}</client>
        <tenant>${TENANT ID}</tenant>
        <key>${KEY}</key>
        <environment>AZURE</environment>
      </configuration>
    </server>
  </servers>
  • maven plugin configuration
<plugin>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-webapp-maven-plugin</artifactId>
        <version>1.6.0</version>
        <configuration>
          <authentication>
            <serverId>verify</serverId>
          </authentication>
          ...

@javisst Yes, we are still looking for solutions for this issue, before this, please set the service principal in maven's setting file as a workaround.

from azure-maven-plugins.

EricZhangzf avatar EricZhangzf commented on May 14, 2024

Hi @Flanker32 ,
I have verified this issue today, it still reproduces on Mac OS, here is my repro steps.
1. Run: az login --service-principal -u <app-url> -p <password-or-cert> --tenant <tenant> on bash.
image

2.Run: mvn azure-webapp:deploy.
image

My azure-cli version is 2.0.67, it works well on Windows.

from azure-maven-plugins.

EricZhangzf avatar EricZhangzf commented on May 14, 2024

The reason is because some of the caches in the log have not been cleared, and re-generation after clear will solve the problem.

from azure-maven-plugins.

Flanker32 avatar Flanker32 commented on May 14, 2024

This was caused by an issue of autorest-clientruntime-for-java and has been fixed in webapp plugin 1.7.0 and function plugin 1.3.3

from azure-maven-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.