Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 158e55a

Browse files
committed
Release 1.30.0
1 parent a2ec9cb commit 158e55a

File tree

3 files changed

+56
-26
lines changed

3 files changed

+56
-26
lines changed

README.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,43 @@ page_type: sample
33
languages:
44
- java
55
products:
6-
- azure-app-service
76
- azure
8-
- azure-functions
9-
description: "Azure App Service basic sample for managing function apps."
10-
urlFragment: app-service-java-configure-deployment-sources-for-functions
7+
extensions:
8+
- services: Appservice
9+
- platforms: java
1110
---
1211

13-
# Manage Function App Source Control (Java)
14-
15-
Azure App Service basic sample for managing function apps.
16-
17-
- Create 5 function apps under the same new app service plan:
18-
- Deploy to 1 using FTP
19-
- Deploy to 2 using local Git repository
20-
- Deploy to 3 using a publicly available Git repository
21-
- Deploy to 4 using a GitHub repository with continuous integration
22-
- Deploy to 5 using web deploy
23-
- Deploy to 6 using zip deploy
12+
# Getting Started with Appservice - Manage Function App Source Control - in Java #
13+
14+
15+
Azure App Service basic sample for managing function apps.
16+
- Create 5 function apps under the same new app service plan:
17+
- Deploy to 1 using FTP
18+
- Deploy to 2 using local Git repository
19+
- Deploy to 3 using a publicly available Git repository
20+
- Deploy to 4 using a GitHub repository with continuous integration
21+
- Deploy to 5 using web deploy
22+
- Deploy to 6 using zip deploy
2423

2524

26-
## Running this sample
25+
## Running this Sample ##
2726

2827
To run this sample:
2928

3029
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-libraries-for-java/blob/master/AUTH.md).
3130

32-
```bash
33-
git clone https://github.com/Azure-Samples/app-service-java-configure-deployment-sources-for-functions.git
34-
cd app-service-java-configure-deployment-sources-for-functions
35-
mvn clean compile exec:java
36-
```
31+
git clone https://github.com/Azure-Samples/app-service-java-configure-deployment-sources-for-functions.git
32+
33+
cd app-service-java-configure-deployment-sources-for-functions
3734

38-
## More information
35+
mvn clean compile exec:java
36+
37+
## More information ##
3938

4039
[http://azure.com/java](http://azure.com/java)
4140

42-
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212).
41+
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212)
42+
43+
---
4344

44-
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.
45+
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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>com.microsoft.azure</groupId>
5555
<artifactId>azure</artifactId>
56-
<version>1.24.1</version>
56+
<version>1.30.0</version>
5757
</dependency>
5858
<dependency>
5959
<groupId>commons-net</groupId>
@@ -65,5 +65,15 @@
6565
<artifactId>org.eclipse.jgit</artifactId>
6666
<version>4.5.0.201609210915-r</version>
6767
</dependency>
68+
<dependency>
69+
<groupId>commons-lang</groupId>
70+
<artifactId>commons-lang</artifactId>
71+
<version>2.6</version>
72+
</dependency>
73+
<dependency>
74+
<groupId>org.apache.commons</groupId>
75+
<artifactId>commons-lang3</artifactId>
76+
<version>3.7</version>
77+
</dependency>
6878
</dependencies>
6979
</project>

src/main/java/com/microsoft/azure/management/samples/Utils.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,24 @@ public static void print(LoadBalancer resource) {
739739
}
740740
}
741741

742+
// Show HTTPS probes
743+
info.append("\n\tHTTPS probes: ")
744+
.append(resource.httpsProbes().size());
745+
for (LoadBalancerHttpProbe probe : resource.httpsProbes().values()) {
746+
info.append("\n\t\tProbe name: ").append(probe.name())
747+
.append("\n\t\t\tPort: ").append(probe.port())
748+
.append("\n\t\t\tInterval in seconds: ").append(probe.intervalInSeconds())
749+
.append("\n\t\t\tRetries before unhealthy: ").append(probe.numberOfProbes())
750+
.append("\n\t\t\tHTTPS request path: ").append(probe.requestPath());
751+
752+
// Show associated load balancing rules
753+
info.append("\n\t\t\tReferenced from load balancing rules: ")
754+
.append(probe.loadBalancingRules().size());
755+
for (LoadBalancingRule rule : probe.loadBalancingRules().values()) {
756+
info.append("\n\t\t\t\tName: ").append(rule.name());
757+
}
758+
}
759+
742760
// Show load balancing rules
743761
info.append("\n\tLoad balancing rules: ")
744762
.append(resource.loadBalancingRules().size());
@@ -994,7 +1012,7 @@ public static void print(AppServicePlan resource) {
9941012
*/
9951013
public static void print(WebAppBase resource) {
9961014
StringBuilder builder = new StringBuilder().append("Web app: ").append(resource.id())
997-
.append("Name: ").append(resource.name())
1015+
.append("\n\tName: ").append(resource.name())
9981016
.append("\n\tState: ").append(resource.state())
9991017
.append("\n\tResource group: ").append(resource.resourceGroupName())
10001018
.append("\n\tRegion: ").append(resource.region())
@@ -1377,6 +1395,7 @@ public static String createRandomName(String namePrefix) {
13771395
*/
13781396
public static void createCertificate(String certPath, String pfxPath,
13791397
String alias, String password, String cnName) throws Exception {
1398+
SdkContext.prepareFileLocation(new File(pfxPath), new File(certPath));
13801399
if (new File(pfxPath).exists()) {
13811400
return;
13821401
}

0 commit comments

Comments
 (0)