Skip to content

Commit b684d2d

Browse files
committed
Moved samples to 4.1
1 parent 2a020d4 commit b684d2d

File tree

6 files changed

+2109
-2
lines changed

6 files changed

+2109
-2
lines changed

CONTRIBUTING.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Contributing to Azure samples
2+
3+
Thank you for your interest in contributing to Azure samples!
4+
5+
## Ways to contribute
6+
7+
You can contribute to [Azure samples](https://azure.microsoft.com/documentation/samples/) in a few different ways:
8+
9+
- Submit feedback on [this sample page](https://azure.microsoft.com/documentation/samples/app-service-java-scale-web-apps-on-linux/) whether it was helpful or not.
10+
- Submit issues through [issue tracker](https://github.com/Azure-Samples/app-service-java-scale-web-apps-on-linux/issues) on GitHub. We are actively monitoring the issues and improving our samples.
11+
- If you wish to make code changes to samples, or contribute something new, please follow the [GitHub Forks / Pull requests model](https://help.github.com/articles/fork-a-repo/): Fork the sample repo, make the change and propose it back by submitting a pull request.

README.md

+38-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1-
# Contributing
1+
---
2+
services: Appservice
3+
platforms: java
4+
author: jianghaolu
5+
---
26

3-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
7+
#Getting Started with Appservice - Manage Linux Web App With Traffic Manager - in Java #
8+
9+
10+
Azure App Service sample for managing web apps.
11+
- Create a domain
12+
- Create a self-signed certificate for the domain
13+
- Create 3 app service plans in 3 different regions
14+
- Create 5 web apps under the 3 plans, bound to the domain and the certificate
15+
- Create a traffic manager in front of the web apps
16+
- Scale up the app service plans to twice the capacity
17+
18+
19+
## Running this Sample ##
20+
21+
To run this sample:
22+
23+
Set the environment variable `AZURE_AUTH_LOCATION` with the full path for an auth file. See [how to create an auth file](https://github.com/Azure/azure-sdk-for-java/blob/master/AUTH.md).
24+
25+
git clone https://github.com/Azure-Samples/app-service-java-scale-web-apps-on-linux.git
26+
27+
cd app-service-java-scale-web-apps-on-linux
28+
29+
mvn clean compile exec:java
30+
31+
## More information ##
32+
33+
[http://azure.com/java] (http://azure.com/java)
34+
35+
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212)
36+
37+
---
38+
39+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

pom.xml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.microsoft.azure</groupId>
6+
<artifactId>app-service-java-scale-web-apps-on-linux</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<name>ManageLinuxWebAppWithTrafficManager.java</name>
9+
<description></description>
10+
<url>https://github.com/Azure/app-service-java-scale-web-apps-on-linux</url>
11+
<build>
12+
<plugins>
13+
<plugin>
14+
<groupId>org.codehaus.mojo</groupId>
15+
<artifactId>exec-maven-plugin</artifactId>
16+
<version>1.4.0</version>
17+
<configuration>
18+
<mainClass>com.microsoft.azure.management.appservice.samples.ManageLinuxWebAppWithTrafficManager</mainClass>
19+
</configuration>
20+
</plugin>
21+
<plugin>
22+
<artifactId>maven-compiler-plugin</artifactId>
23+
<version>3.0</version>
24+
<configuration>
25+
<source>1.7</source>
26+
<target>1.7</target>
27+
</configuration>
28+
</plugin>
29+
<plugin>
30+
<artifactId>maven-assembly-plugin</artifactId>
31+
<executions>
32+
<execution>
33+
<phase>package</phase>
34+
<goals>
35+
<goal>attached</goal>
36+
</goals>
37+
<configuration>
38+
<descriptorRefs>
39+
<descriptorRef>jar-with-dependencies</descriptorRef>
40+
</descriptorRefs>
41+
<archive>
42+
<manifest>
43+
<mainClass>com.microsoft.azure.management.appservice.samples.ManageLinuxWebAppWithTrafficManager.java</mainClass>
44+
</manifest>
45+
</archive>
46+
</configuration>
47+
</execution>
48+
</executions>
49+
</plugin>
50+
</plugins>
51+
</build>
52+
<dependencies>
53+
<dependency>
54+
<groupId>com.microsoft.azure</groupId>
55+
<artifactId>azure</artifactId>
56+
<version>1.0.0</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>commons-net</groupId>
60+
<artifactId>commons-net</artifactId>
61+
<version>3.3</version>
62+
</dependency>
63+
</dependencies>
64+
</project>

0 commit comments

Comments
 (0)