com.microsoft.azure:azure-tools-common

Maven plugins for Microsoft Azure services

License

License

GroupId

GroupId

com.microsoft.azure
ArtifactId

ArtifactId

azure-tools-common
Last Version

Last Version

0.14.0
Release Date

Release Date

Type

Type

jar
Description

Description

Maven plugins for Microsoft Azure services
Source Code Management

Source Code Management

https://github.com/microsoft/azure-maven-plugins

Download azure-tools-common

How to add to project

<!-- https://jarcasting.com/artifacts/com.microsoft.azure/azure-tools-common/ -->
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-tools-common</artifactId>
    <version>0.14.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.microsoft.azure/azure-tools-common/
implementation 'com.microsoft.azure:azure-tools-common:0.14.0'
// https://jarcasting.com/artifacts/com.microsoft.azure/azure-tools-common/
implementation ("com.microsoft.azure:azure-tools-common:0.14.0")
'com.microsoft.azure:azure-tools-common:jar:0.14.0'
<dependency org="com.microsoft.azure" name="azure-tools-common" rev="0.14.0">
  <artifact name="azure-tools-common" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.microsoft.azure', module='azure-tools-common', version='0.14.0')
)
libraryDependencies += "com.microsoft.azure" % "azure-tools-common" % "0.14.0"
[com.microsoft.azure/azure-tools-common "0.14.0"]

Dependencies

compile (20)

Group / Artifact Type Version
com.microsoft.azure.applicationinsights.v2015_05_01 : azure-mgmt-insights jar 1.0.0-beta
com.microsoft.azure : azure jar 1.38.1
com.microsoft.azure.functions : azure-functions-java-library jar 1.4.2
org.reflections : reflections jar 0.9.12
com.github.zafarkhaja : java-semver jar 0.9.0
com.fasterxml.jackson.dataformat : jackson-dataformat-yaml jar 2.12.1
com.fasterxml.jackson.core : jackson-databind jar 2.12.1
commons-codec : commons-codec jar 1.15
com.google.errorprone : error_prone_core jar 2.5.1
org.zeroturnaround : zt-zip jar 1.14
commons-net : commons-net jar 3.7.2
org.slf4j : slf4j-api jar 1.7.29
org.apache.commons : commons-collections4 jar 4.4
org.apache.commons : commons-lang3 jar 3.11
com.google.code.gson : gson jar 2.8.6
org.fusesource.jansi : jansi jar 1.17.1
com.github.java-json-tools : json-schema-validator jar 2.2.14
org.jacoco : org.jacoco.agent jar 0.8.6
com.microsoft.azure : azure-arm-client-runtime jar 1.7.12
com.microsoft.azure : azure-toolkit-common-lib jar 0.6.0

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.16

test (5)

Group / Artifact Type Version
org.mockito : mockito-core jar 3.9.0
junit : junit jar 4.13.1
org.springframework : spring-test jar 4.1.6.RELEASE
com.microsoft.azure : azure-eventhubs jar 1.2.0
com.microsoft.azure : azure-eventhubs-eph jar 2.0.1

Project Modules

There are no modules declared in this project.

Maven Plugins for Azure Services

This repository contains all Maven plugins for Microsoft Azure services.

For more information on authentication, common configurations, CI CD, and general plugin documentation, see the Wiki.

Plugins

Maven Plugin Maven Central Version Build Status
Maven Plugin for Azure Web Apps Maven Central AppVeyor Webapp Plugin
Maven Plugin for Azure Functions Maven Central AppVeyor Function Plugin
Maven Plugin for Azure Spring Cloud Maven Central

Authentication

All the Azure Maven plugins share the same authentication logic. There are 4 authentication methods by priority order:

  1. Service Principles in plugin configuration
  2. Service Principles in settings.xml (Recommended for production use)
  3. Maven Plugin for Azure Account (Default if no other method are used)
  4. Azure CLI

For example, if you have not only Service Principles configured in your plugin configuration, but also Azure CLI installed and logged in, the Azure Maven plugins will use the Service Principles in your plugin configuration.

If no credential found, Azure Maven plugins will automatically log you in with the third method like OAuth or DeviceLogin provided by Maven Plugin for Azure Account.

AuthType (since Web App 1.9.0)

You can specify which authentication method to use with in Maven configuration, the default value is auto, and here are all the valid values:

  • service_principal
    • Will use credential specified in plugin configuration or Maven settings.xml, this is also the first priority authentication method in auto
  • azure_auth_maven_plugin
    • Will use credential provided by Azure Auth Maven Plugin, it will first consume existing secret files, and will guide you auth with Oath or Device Login if you hadn't authenticated with Auth Maven Plugin before.
  • azure_cli
    • Will use credential provided by Azure CLI, this could also be used in Azure Cloud Shell.
  • auto
    • Will try all the auth methods in the following sequence: service_principal, azure_auth_maven_plugin(existing secret files), azure_cli, azure_auth_maven_plugin

Maven plugin will only try the specific authentication method (except auto) if is set in configuration.

See the Authentication section in our wiki for more information.

Common Configurations

The three Maven Plugins for Azure Web App/Functions/Spring Cloud support below configuration properties.

Property Required Description Version
<subscriptionId> false Specifies the target subscription.
Use this setting when you have multiple subscriptions in your authentication file.
WebApp: 0.1.0
Function: 0.1.0
Spring: 1.0.0
<allowTelemetry> false Specifies whether to allow this plugin to send telemetry data; default value is true. WebApp: 0.1.0
Function: 0.1.0
Spring: 1.0.0
<auth> false Specifies auth configuration. For more info, please refer to here. WebApp:0.1.0
Function:0.1.0
<authType> false Specifies which authentication method to use, default value is auto. For more infos, please refer to here. WebApp:1.9.0
<skip> false Specifies whether to skip execution. Default value is false. WebApp: 0.1.4
Function: 0.1.0

Feedback and Questions

To report bugs or request new features, file issues on Issues. Or, ask questions on Stack Overflow with tag azure-java-tools.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once in all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Telemetry

This project collects usage data and sends it to Microsoft to help improve our products and services. Read Microsoft's privacy statement to learn more. If you would like to opt out of sending telemetry data to Microsoft, you can set allowTelemetry to false in the plugin configuration. Please read our documents to find more details.

com.microsoft.azure

Microsoft

Open source projects and samples from Microsoft

Versions

Version
0.14.0
0.13.1
0.13.0
0.12.0
0.11.0
0.10.2
0.10.1
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0