Skip to content

Commit 8760060

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into asc-melvyn-vmva
2 parents f4d10d2 + b952ca5 commit 8760060

18 files changed

+126
-57
lines changed

articles/active-directory/privileged-identity-management/pim-troubleshoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This problem can happen when the User Access Administrator role for the PIM serv
3131

3232
### Resolution
3333

34-
Assign the User Access Administrator role to the Privileged identity Management service principal name (MS–PIM) at the subscription level. This assignment should allow the Privileged identity Management service to access the Azure resources. The role can be assigned on a management group level or at the subscription level, depending on your requirements. For more information service principals, see [Assign an application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-the-application-to-a-role).
34+
Assign the User Access Administrator role to the Privileged identity Management service principal name (MS–PIM) at the subscription level. This assignment should allow the Privileged identity Management service to access the Azure resources. The role can be assigned on a management group level or at the subscription level, depending on your requirements. For more information service principals, see [Assign an application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-a-role-to-the-application).
3535

3636
## Next steps
3737

articles/app-service/app-service-web-configure-tls-mutual-auth.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can restrict access to your Azure App Service app by enabling different type
1616
> If you access your site over HTTP and not HTTPS, you will not receive any client certificate. So if your application requires client certificates, you should not allow requests to your application over HTTP.
1717
>
1818
19+
[!INCLUDE [Prepare your web app](../../includes/app-service-ssl-prepare-app.md)]
20+
1921
## Enable client certificates
2022

2123
To set up your app to require client certificates, you need to set the `clientCertEnabled` setting for your app to `true`. To set the setting, run the following command in the [Cloud Shell](https://shell.azure.com).

articles/app-service/deploy-staging-slots.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to deploy apps to a non-production slot and autoswap into
44

55
ms.assetid: e224fc4f-800d-469a-8d6a-72bcde612450
66
ms.topic: article
7-
ms.date: 09/19/2019
7+
ms.date: 03/04/2020
88
ms.custom: fasttrack-edit
99

1010
---
@@ -19,7 +19,7 @@ Deploying your application to a non-production slot has the following benefits:
1919
* Deploying an app to a slot first and swapping it into production makes sure that all instances of the slot are warmed up before being swapped into production. This eliminates downtime when you deploy your app. The traffic redirection is seamless, and no requests are dropped because of swap operations. You can automate this entire workflow by configuring [auto swap](#Auto-Swap) when pre-swap validation isn't needed.
2020
* After a swap, the slot with previously staged app now has the previous production app. If the changes swapped into the production slot aren't as you expect, you can perform the same swap immediately to get your "last known good site" back.
2121

22-
Each App Service plan tier supports a different number of deployment slots. There's no additional charge for using deployment slots. To find out the number of slots your app's tier supports, see [App Service limits](https://docs.microsoft.com/azure/azure-resource-manager/management/azure-subscription-service-limits#app-service-limits).
22+
Each App Service plan tier supports a different number of deployment slots. There's no additional charge for using deployment slots. To find out the number of slots your app's tier supports, see [App Service limits](../azure-resource-manager/management/azure-subscription-service-limits.md#app-service-limits).
2323

2424
To scale your app to a different tier, make sure that the target tier supports the number of slots your app already uses. For example, if your app has more than five slots, you can't scale it down to the **Standard** tier, because the **Standard** tier supports only five deployment slots.
2525

@@ -299,7 +299,7 @@ New-AzWebAppSlot -ResourceGroupName [resource group name] -Name [app name] -Slot
299299
---
300300
### Initiate a swap with a preview (multi-phase swap), and apply destination slot configuration to the source slot
301301
```powershell
302-
$ParametersObject = @{targetSlot = "[slot name – e.g. production]"}
302+
$ParametersObject = @{targetSlot = "[slot name – e.g. "production"]"}
303303
Invoke-AzResourceAction -ResourceGroupName [resource group name] -ResourceType Microsoft.Web/sites/slots -ResourceName [app name]/[slot name] -Action applySlotConfig -Parameters $ParametersObject -ApiVersion 2015-07-01
304304
```
305305

@@ -312,7 +312,7 @@ Invoke-AzResourceAction -ResourceGroupName [resource group name] -ResourceType M
312312
---
313313
### Swap deployment slots
314314
```powershell
315-
$ParametersObject = @{targetSlot = "[slot name – e.g. production]"}
315+
$ParametersObject = @{targetSlot = "[slot name – e.g. "production"]"}
316316
Invoke-AzResourceAction -ResourceGroupName [resource group name] -ResourceType Microsoft.Web/sites/slots -ResourceName [app name]/[slot name] -Action slotsswap -Parameters $ParametersObject -ApiVersion 2015-07-01
317317
```
318318

articles/azure-databricks/databricks-extract-load-sql-data-warehouse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Complete these tasks before you begin this tutorial:
5353

5454
There's a couple of specific things that you'll have to do as you perform the steps in that article.
5555

56-
* When performing the steps in the [Assign the application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-the-application-to-a-role) section of the article, make sure to assign the **Storage Blob Data Contributor** role to the service principal in the scope of the Data Lake Storage Gen2 account. If you assign the role to the parent resource group or subscription, you'll receive permissions-related errors until those role assignments propagate to the storage account.
56+
* When performing the steps in the [Assign the application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-a-role-to-the-application) section of the article, make sure to assign the **Storage Blob Data Contributor** role to the service principal in the scope of the Data Lake Storage Gen2 account. If you assign the role to the parent resource group or subscription, you'll receive permissions-related errors until those role assignments propagate to the storage account.
5757

5858
If you'd prefer to use an access control list (ACL) to associate the service principal with a specific file or directory, reference [Access control in Azure Data Lake Storage Gen2](../storage/blobs/data-lake-storage-access-control.md).
5959

articles/azure-functions/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
href: functions-create-your-first-function-visual-studio.md
2323
- name: Command line
2424
href: functions-create-first-azure-function-azure-cli.md
25-
- name: Maven (Java)
25+
- name: Maven/Gradle (Java)
2626
href: functions-create-first-java-maven.md
2727
- name: Connect to storage
2828
items:
@@ -32,7 +32,7 @@
3232
href: functions-add-output-binding-storage-queue-vs.md
3333
- name: Command line
3434
href: functions-add-output-binding-storage-queue-cli.md
35-
- name: Maven (Java)
35+
- name: Maven/Gradle (Java)
3636
href: functions-add-output-binding-storage-queue-java.md
3737
- name: Tutorials
3838
items:

articles/azure-functions/functions-add-output-binding-storage-queue-java.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
22
title: Connect your Java function to Azure Storage
33
description: Learn how to connect an HTTP-triggered Java function to Azure Storage by using a Queue storage output binding.
4+
author: KarlErickson
5+
ms.author: karler
46
ms.date: 10/14/2019
57
ms.topic: quickstart
8+
zone_pivot_groups: java-build-tools-set
69
---
710

811
# Connect your Java function to Azure Storage
@@ -107,10 +110,19 @@ You're now ready to try out the new output binding locally.
107110

108111
As before, use the following command to build the project and start the Functions runtime locally:
109112

113+
::: zone pivot="java-build-tools-maven"
110114
```bash
111115
mvn clean package
112116
mvn azure-functions:run
113117
```
118+
::: zone-end
119+
120+
::: zone pivot="java-build-tools-gradle"
121+
```bash
122+
gradle jar --info
123+
gradle azureFunctionsRun
124+
```
125+
::: zone-end
114126

115127
> [!NOTE]
116128
> Because you enabled extension bundles in the host.json, the [Storage binding extension](functions-bindings-storage-blob.md#add-to-your-functions-app) was downloaded and installed for you during startup, along with the other Microsoft binding extensions.
@@ -133,9 +145,17 @@ Next, you use the Azure CLI to view the new queue and verify that a message was
133145

134146
To update your published app, run the following command again:
135147

136-
```azurecli
148+
::: zone pivot="java-build-tools-maven"
149+
```bash
137150
mvn azure-functions:deploy
138151
```
152+
::: zone-end
153+
154+
::: zone pivot="java-build-tools-gradle"
155+
```bash
156+
gradle azureFunctionsDeploy
157+
```
158+
::: zone-end
139159

140160
Again, you can use cURL to test the deployed function. As before, pass the value `AzureFunctions` in the body of the POST request to the URL, as in this example:
141161

@@ -157,4 +177,4 @@ Next, you should enable Application Insights monitoring for your function app:
157177
> [Enable Application Insights integration](functions-monitoring.md#manually-connect-an-app-insights-resource)
158178
159179

160-
[Azure Storage Explorer]: https://storageexplorer.com/
180+
[Azure Storage Explorer]: https://storageexplorer.com/

articles/azure-functions/functions-create-first-java-maven.md

Lines changed: 74 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
---
2-
title: Use Java and Maven to publish a function to Azure
3-
description: Create and publish an HTTP-triggered function to Azure with Java and Maven.
4-
author: rloutlaw
2+
title: Use Java and Maven/Gradle to publish a function to Azure
3+
description: Create and publish an HTTP-triggered function to Azure with Java and Maven or Gradle.
4+
author: KarlErickson
5+
ms.author: karler
56
ms.topic: quickstart
67
ms.date: 08/10/2018
78
ms.custom: mvc, devcenter, seo-java-july2019, seo-java-august2019, seo-java-september2019
9+
zone_pivot_groups: java-build-tools-set
810
---
911

10-
# Quickstart: Use Java and Maven to create and publish a function to Azure
12+
# Quickstart: Use Java and Maven/Gradle to create and publish a function to Azure
1113

12-
This article shows you how to build and publish a Java function to Azure Functions with the Maven command-line tool. When you're done, your function code runs in Azure in a [serverless hosting plan](functions-scale.md#consumption-plan) and is triggered by an HTTP request.
14+
This article shows you how to build and publish a Java function to Azure Functions with the Maven/Gradle command-line tool. When you're done, your function code runs in Azure in a [serverless hosting plan](functions-scale.md#consumption-plan) and is triggered by an HTTP request.
1315

1416
<!--
1517
> [!NOTE]
@@ -21,44 +23,36 @@ This article shows you how to build and publish a Java function to Azure Functio
2123
To develop functions using Java, you must have the following installed:
2224

2325
- [Java Developer Kit](https://aka.ms/azure-jdks), version 8
24-
- [Apache Maven](https://maven.apache.org), version 3.0 or above
2526
- [Azure CLI]
2627
- [Azure Functions Core Tools](./functions-run-local.md#v2) version 2.6.666 or above
28+
::: zone pivot="java-build-tools-maven"
29+
- [Apache Maven](https://maven.apache.org), version 3.0 or above
30+
::: zone-end
31+
32+
::: zone pivot="java-build-tools-gradle"
33+
- [Gradle](https://gradle.org/), version 4.10 and above
34+
::: zone-end
2735

2836
You also need an active Azure subscription. [!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2937

3038

3139
> [!IMPORTANT]
3240
> The JAVA_HOME environment variable must be set to the install location of the JDK to complete this quickstart.
3341
34-
## Generate a new Functions project
42+
## Prepare a Functions project
3543

44+
::: zone pivot="java-build-tools-maven"
3645
In an empty folder, run the following command to generate the Functions project from a [Maven archetype](https://maven.apache.org/guides/introduction/introduction-to-archetypes.html).
3746

38-
### Linux/macOS
39-
4047
```bash
41-
mvn archetype:generate \
42-
-DarchetypeGroupId=com.microsoft.azure \
43-
-DarchetypeArtifactId=azure-functions-archetype
48+
mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype
4449
```
4550

4651
> [!NOTE]
47-
> If you're experiencing issues with running the command, take a look at what `maven-archetype-plugin` version is used. Because you are running the command in an empty directory with no `.pom` file, it might be attempting to use a plugin of the older version from `~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin` if you upgraded your Maven from an older version. If so, try deleting the `maven-archetype-plugin` directory and re-running the command.
52+
> If you're using Powershell, remeber to add "" around parameters.
4853
49-
### Windows
50-
51-
```powershell
52-
mvn archetype:generate `
53-
"-DarchetypeGroupId=com.microsoft.azure" `
54-
"-DarchetypeArtifactId=azure-functions-archetype"
55-
```
56-
57-
```cmd
58-
mvn archetype:generate ^
59-
"-DarchetypeGroupId=com.microsoft.azure" ^
60-
"-DarchetypeArtifactId=azure-functions-archetype"
61-
```
54+
> [!NOTE]
55+
> If you're experiencing issues with running the command, take a look at what `maven-archetype-plugin` version is used. Because you are running the command in an empty directory with no `.pom` file, it might be attempting to use a plugin of the older version from `~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin` if you upgraded your Maven from an older version. If so, try deleting the `maven-archetype-plugin` directory and re-running the command.
6256
6357
Maven asks you for values needed to finish generating the project on deployment. Provide the following values when prompted:
6458

@@ -74,7 +68,35 @@ Maven asks you for values needed to finish generating the project on deployment.
7468

7569
Type `Y` or press Enter to confirm.
7670

77-
Maven creates the project files in a new folder with a name of _artifactId_, which in this example is `fabrikam-functions`.
71+
Maven creates the project files in a new folder with a name of _artifactId_, which in this example is `fabrikam-functions`. Run the following command to change the directory to the created project folder.
72+
```bash
73+
cd fabrikam-function
74+
```
75+
76+
::: zone-end
77+
::: zone pivot="java-build-tools-gradle"
78+
Use the following command to clone the sample project:
79+
80+
```bash
81+
git clone https://github.com/Azure-Samples/azure-functions-samples-java.git
82+
cd azure-functions-samples-java/
83+
```
84+
85+
Open `build.gradle` and change the `appName` in the following section to a unique name to avoid domain name conflict when deploying to Azure.
86+
87+
```gradle
88+
azurefunctions {
89+
resourceGroup = 'java-functions-group'
90+
appName = 'azure-functions-sample-demo'
91+
pricingTier = 'Consumption'
92+
region = 'westus'
93+
runtime {
94+
os = 'windows'
95+
}
96+
localDebug = "transport=dt_socket,server=y,suspend=n,address=5005"
97+
}
98+
```
99+
::: zone-end
78100

79101
Open the new Function.java file from the *src/main/java* path in a text editor and review the generated code. This code is an [HTTP triggered](functions-bindings-http-webhook.md) function that echoes the body of the request.
80102

@@ -83,15 +105,23 @@ Open the new Function.java file from the *src/main/java* path in a text editor a
83105
84106
## Run the function locally
85107

86-
Run the following command, which changes the directory to the newly created project folder, then builds and runs the function project:
108+
Run the following command to build then run the function project:
87109

88-
```console
89-
cd fabrikam-function
110+
::: zone pivot="java-build-tools-maven"
111+
```bash
90112
mvn clean package
91113
mvn azure-functions:run
92114
```
115+
::: zone-end
116+
117+
::: zone pivot="java-build-tools-gradle"
118+
```bash
119+
gradle jar --info
120+
gradle azureFunctionsRun
121+
```
122+
::: zone-end
93123

94-
You see output like the following from Azure Functions Core Tools when you run the project locally:
124+
You will see output like the following from Azure Functions Core Tools when you run the project locally:
95125

96126
```output
97127
...
@@ -107,7 +137,7 @@ Http Functions:
107137

108138
Trigger the function from the command line using cURL in a new terminal window:
109139

110-
```CMD
140+
```bash
111141
curl -w "\n" http://localhost:7071/api/HttpTrigger-Java --data AzureFunctions
112142
```
113143

@@ -130,13 +160,22 @@ az login
130160
> [!TIP]
131161
> If your account can access multiple subscriptions, use [az account set](/cli/azure/account#az-account-set) to set the default subscription for this session.
132162
133-
Use the following Maven command to deploy your project to a new function app.
163+
Use the following command to deploy your project to a new function app.
134164

135-
```console
165+
166+
::: zone pivot="java-build-tools-maven"
167+
```bash
136168
mvn azure-functions:deploy
137169
```
170+
::: zone-end
171+
172+
::: zone pivot="java-build-tools-gradle"
173+
```bash
174+
gradle azureFunctionsDeploy
175+
```
176+
::: zone-end
138177

139-
This `azure-functions:deploy` Maven target creates the following resources in Azure:
178+
This will create the following resources in Azure:
140179

141180
+ Resource group. Named with the _resourceGroup_ you supplied.
142181
+ Storage account. Required by Functions. The name is generated randomly based on Storage account name requirements.

articles/sql-database/security-baseline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ https://docs.microsoft.com/azure/sql-database/sql-database-metrics-diag-logging
252252

253253
How to stream diagnostics into Azure SQL Analytics:
254254

255-
https://docs.microsoft.com/azure/sql-database/sql-database-metrics-diag-logging#stream-into-azure-sql-analytics
255+
https://docs.microsoft.com/azure/sql-database/sql-database-metrics-diag-logging#stream-diagnostic-telemetry-into-sql-analytics
256256

257257
**Azure Security Center monitoring**: Yes
258258

articles/storage/blobs/data-lake-storage-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ We'll build this solution in reverse order, starting with the Azure Databricks w
3737

3838
There's a couple of specific things that you'll have to do as you perform the steps in that article.
3939

40-
:heavy_check_mark: When performing the steps in the [Assign the application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-the-application-to-a-role) section of the article, make sure to assign the **Storage Blob Data Contributor** role to the service principal.
40+
:heavy_check_mark: When performing the steps in the [Assign the application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-a-role-to-the-application) section of the article, make sure to assign the **Storage Blob Data Contributor** role to the service principal.
4141

4242
> [!IMPORTANT]
4343
> Make sure to assign the role in the scope of the Data Lake Storage Gen2 storage account. You can assign a role to the parent resource group or subscription, but you'll receive permissions-related errors until those role assignments propagate to the storage account.

articles/storage/blobs/data-lake-storage-migrate-on-premises-HDFS-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ You already have the data into your Azure Storage account. Now you will apply ac
182182
183183
To create a service principal, see [How to: Use the portal to create an Azure AD application and service principal that can access resources](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
184184
185-
* When performing the steps in the [Assign the application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-the-application-to-a-role) section of the article, make sure to assign the **Storage Blob Data Contributor** role to the service principal.
185+
* When performing the steps in the [Assign the application to a role](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#assign-a-role-to-the-application) section of the article, make sure to assign the **Storage Blob Data Contributor** role to the service principal.
186186
187187
* When performing the steps in the [Get values for signing in](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#get-values-for-signing-in) section of the article, save application ID, and client secret values into a text file. You'll need those soon.
188188

0 commit comments

Comments
 (0)