Comments (8)
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.
Related issue: Azure/azure-libraries-for-java#417
from azure-maven-plugins.
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.
Hi! Is this still being worked on? We need this for our build pipelines.
from azure-maven-plugins.
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.
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.
2.Run: mvn azure-webapp:deploy.
My azure-cli version is 2.0.67, it works well on Windows.
from azure-maven-plugins.
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.
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)
- mvn com.microsoft.azure:azure-spring-apps-maven-plugin:1.14.0:config returns error when work with Java 17 HOT 10
- Improve logic of getting java version
- All Trigger Types Not Available in IntelliJ IDEA IDE while adding the additional function to existing Java Azure Functions Project HOT 2
- Feature request: add configuration option to enable app service easy auth
- Does not support the API version '2022-09-01-preview HOT 2
- A lot of error logs about AcquireTokenSilentSupplier HOT 1
- azure-webapp-maven-plugin:2.9.0 seems to have errors
- [FEATURE_REQ] Spring apps plugin does not support defining the order of apps when deploying aggregate projects HOT 1
- [FEATURE_REQ] Use Spring Apps plugin to configure a more accurate app name
- [FEATURE_REQ] Support pre-definition for Spring Apps maven plugin HOT 1
- Plugin should declare these Maven artifacts in `provided` scope
- Remove or suppress the message: "default messager has already been registered" HOT 1
- Ability to set property values from azure-maven-plugin ? HOT 1
- Ie
- azure-webapp-maven-plugin deploy fails with version >= 2.11.0 HOT 2
- Usage of func start options HOT 1
- Unable to deploy to Tomcat 10.0 using azure-webapp-maven-plugin 2.12.0 HOT 1
- Azure deployment is failing Warning: 'Content-Type' not found. Returning default encoding: JSON Error: Status code 400, (empty body) HOT 5
- functions plugin does not redeploy app HOT 3
- Unable to deploy from devcontainer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-maven-plugins.