Skip to content

Commit ecb08d3

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into seo
2 parents 574648a + c029f76 commit ecb08d3

File tree

221 files changed

+2975
-1261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+2975
-1261
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24605,6 +24605,16 @@
2460524605
"redirect_url": "/azure/storage/blobs/storage-quickstart-blobs-java",
2460624606
"redirect_document_id": false
2460724607
},
24608+
{
24609+
"source_path": "articles/storage/blobs/storage-quickstart-blobs-nodejs-v10.md",
24610+
"redirect_url": "/azure/storage/blobs/storage-quickstart-blobs-nodejs-legacy",
24611+
"redirect_document_id": false
24612+
},
24613+
{
24614+
"source_path": "articles/storage/blobs/storage-quickstart-blobs-javascript-client-libraries-v10.md",
24615+
"redirect_url": "/azure/storage/blobs/storage-quickstart-blobs-javascript-client-libraries-legacy",
24616+
"redirect_document_id": false
24617+
},
2460824618
{
2460924619
"source_path": "articles/storage/blobs/storage-nodejs-how-to-use-blob-storage.md",
2461024620
"redirect_url": "/azure/storage/blobs/storage-quickstart-blobs-nodejs",

CODEOWNERS

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
# Testing the new code owners feature in GitHub. Please contact Cory Fowler if you have questions.
2-
# articles/storage/ @tamram @robinsh
3-
# articles/virtual-machines/ @iainfoulds @cynthn
4-
# articles/virtual-machines/linux/ @iainfoulds @cynthn
5-
# articles/virtual-machines/windows/ @iainfoulds @cynthn
6-
# articles/application-insights/ @SergeyKanzhelev
7-
# articles/cosmos-db/ @mimig1
8-
9-
# All Articles
10-
articles/ @apex-docs-pr-reviewers
11-
122
# Cognitive Services
133
articles/cognitive-services/ @diberry @erhopf, @nitinme
144

155
# DevOps
16-
176
articles/ansible/ @TomArcherMsft
187
articles/chef/ @TomArcherMsft
198
articles/jenkins/ @TomArcherMsft
209
articles/terraform/ @TomArcherMsft
2110

2211
# Governance
23-
2412
articles/governance/ @DCtheGeek
13+
14+
# Configuration
15+
*.json @SyntaxC4 @snoviking @arob98
16+
.acrolinx-config.edn @MonicaRush @arob98
17+
articles/zone-pivot-groups.yml @SyntaxC4 @snoviking @arob98

articles/azure-functions/functions-create-cosmos-db-triggered-function.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ Next, you create a function in the new function app.
5959
| Setting | Suggested value | Description |
6060
| ------------ | ---------------- | ------------------------------------------ |
6161
| **Name** | Default | Use the default function name suggested by the template.|
62-
| **Azure Cosmos DB account connection** | New setting | Select **New**, then choose your **Subscription**, the **Database account** you created earlier, and **Select**. This creates an application setting for your account connection. This setting is used by the binding to connect to the database. |
63-
| **Collection name** | Items | Name of collection to be monitored. |
64-
| **Create lease collection if it doesn't exist** | Checked | The collection doesn't already exist, so create it. |
65-
| **Database name** | Tasks | Name of database with the collection to be monitored. |
62+
| **Azure Cosmos DB account connection** | New setting | Select **New**, then choose your **Subscription**, the **Database account** you created earlier, and **Select**. This creates an application setting for your account connection. This setting is used by the binding to connection to the database. |
63+
| **Container name** | Items | Name of container to be monitored. |
64+
| **Create lease container if it doesn't exist** | Checked | The container doesn't already exist, so create it. |
65+
| **Database name** | Tasks | Name of database with the container to be monitored. |
6666

6767
1. Click **Create** to create your Azure Cosmos DB triggered function. After the function is created, the template-based function code is displayed.
6868

6969
![Cosmos DB function template in C#](./media/functions-create-cosmos-db-triggered-function/function-cosmosdb-template.png)
7070

7171
This function template writes the number of documents and the first document ID to the logs.
7272

73-
Next, you connect to your Azure Cosmos DB account and create the `Items` collection in the `Tasks` database.
73+
Next, you connect to your Azure Cosmos DB account and create the `Items` container in the `Tasks` database.
7474

75-
## Create the Items collection
75+
## Create the Items container
7676

7777
1. Open a second instance of the [Azure portal](https://portal.azure.com) in a new tab in the browser.
7878

@@ -82,33 +82,32 @@ Next, you connect to your Azure Cosmos DB account and create the `Items` collect
8282

8383
1. Choose your Azure Cosmos DB account, then select the **Data Explorer**.
8484

85-
1. In **Collections**, choose **taskDatabase** and select **New Collection**.
85+
1. Under **SQL API**, choose **Tasks** database and select **New Container**.
8686

87-
![Create a collection](./media/functions-create-cosmos-db-triggered-function/cosmosdb-create-collection.png)
87+
![Create a container](./media/functions-create-cosmos-db-triggered-function/cosmosdb-create-container.png)
8888

89-
1. In **Add Collection**, use the settings shown in the table below the image.
89+
1. In **Add Container**, use the settings shown in the table below the image.
9090

91-
![Define the taskCollection](./media/functions-create-cosmos-db-triggered-function/cosmosdb-create-collection2.png)
91+
![Define the Tasks container](./media/functions-create-cosmos-db-triggered-function/cosmosdb-create-container2.png)
9292

9393
| Setting|Suggested value|Description |
9494
| ---|---|--- |
9595
| **Database ID** | Tasks |The name for your new database. This must match the name defined in your function binding. |
96-
| **Collection ID** | Items | The name for the new collection. This must match the name defined in your function binding. |
97-
| **Storage capacity** | Fixed (10 GB)|Use the default value. This value is the storage capacity of the database. |
98-
| **Throughput** |400 RU| Use the default value. If you want to reduce latency, you can scale up the throughput later. |
99-
| **[Partition key](../cosmos-db/partition-data.md)** | /category|A partition key that distributes data evenly to each partition. Selecting the correct partition key is important in creating a performant collection. |
96+
| **Container ID** | Items | The name for the new container. This must match the name defined in your function binding. |
97+
| **[Partition key](../cosmos-db/partition-data.md)** | /category|A partition key that distributes data evenly to each partition. Selecting the correct partition key is important in creating a performant container. |
98+
| **Throughput** |400 RU| Use the default value. If you want to reduce latency, you can scale up the throughput later. |
10099

101-
1. Click **OK** to create the Items collection. It may take a short time for the collection to get created.
100+
1. Click **OK** to create the Items container. It may take a short time for the container to get created.
102101

103-
After the collection specified in the function binding exists, you can test the function by adding documents to this new collection.
102+
After the container specified in the function binding exists, you can test the function by adding items to this new container.
104103

105104
## Test the function
106105

107-
1. Expand the new **taskCollection** collection in Data Explorer, choose **Documents**, then select **New Document**.
106+
1. Expand the new **Items** container in Data Explorer, choose **Items**, then select **New Item**.
108107

109-
![Create a document in taskCollection](./media/functions-create-cosmos-db-triggered-function/create-document-in-collection.png)
108+
![Create an item in Items container](./media/functions-create-cosmos-db-triggered-function/create-item-in-container.png)
110109

111-
1. Replace the contents of the new document with the following content, then choose **Save**.
110+
1. Replace the contents of the new item with the following content, then choose **Save**.
112111

113112
{
114113
"id": "task1",

articles/azure-functions/functions-how-to-azure-devops.md

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To create a YAML-based pipeline, first build your app, and then deploy the app.
2525

2626
How you build your app in Azure Pipelines depends on your app's programming language. Each language has specific build steps that create a deployment artifact. A deployment artifact is used to deploy your function app in Azure.
2727

28-
#### .NET
28+
# [C\#](#tab/csharp)
2929

3030
You can use the following sample to create a YAML file to build a .NET app:
3131

@@ -56,7 +56,7 @@ steps:
5656
artifactName: 'drop'
5757
```
5858
59-
#### JavaScript
59+
# [JavaScript](#tab/javascript)
6060
6161
You can use the following sample to create a YAML file to build a JavaScript app:
6262
@@ -84,13 +84,44 @@ steps:
8484
artifactName: 'drop'
8585
```
8686
87-
#### Python
87+
# [Python](#tab/python)
8888
89-
You can use the following sample to create a YAML file to build a Python app. Python is supported only for Linux Azure Functions. The YAML for Python 3.7 can be built by replacing all the instances of 3.6 with 3.7 in this YAML.
89+
You can use one of the following samples to create a YAML file to build an app for a specific Python version. Python is supported only for function apps running on Linux.
90+
91+
**Version 3.7**
92+
93+
```yaml
94+
pool:
95+
vmImage: ubuntu-16.04
96+
steps:
97+
- task: UsePythonVersion@0
98+
displayName: "Setting python version to 3.7 as required by functions"
99+
inputs:
100+
versionSpec: '3.7'
101+
architecture: 'x64'
102+
- bash: |
103+
if [ -f extensions.csproj ]
104+
then
105+
dotnet build extensions.csproj --output ./bin
106+
fi
107+
pip install --target="./.python_packages/lib/site-packages" -r ./requirements.txt
108+
- task: ArchiveFiles@2
109+
displayName: "Archive files"
110+
inputs:
111+
rootFolderOrFile: "$(System.DefaultWorkingDirectory)"
112+
includeRootFolder: false
113+
archiveFile: "$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip"
114+
- task: PublishBuildArtifacts@1
115+
inputs:
116+
PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
117+
artifactName: 'drop'
118+
```
119+
120+
**Version 3.6**
90121
91122
```yaml
92123
pool:
93-
vmImage: ubuntu-16.04
124+
vmImage: ubuntu-16.04
94125
steps:
95126
- task: UsePythonVersion@0
96127
displayName: "Setting python version to 3.6 as required by functions"
@@ -102,10 +133,7 @@ steps:
102133
then
103134
dotnet build extensions.csproj --output ./bin
104135
fi
105-
python3.6 -m venv worker_venv
106-
source worker_venv/bin/activate
107-
pip3.6 install setuptools
108-
pip3.6 install -r requirements.txt
136+
pip install --target="./.python_packages/lib/python3.6/site-packages" -r ./requirements.txt
109137
- task: ArchiveFiles@2
110138
displayName: "Archive files"
111139
inputs:
@@ -117,7 +145,8 @@ steps:
117145
PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
118146
artifactName: 'drop'
119147
```
120-
#### PowerShell
148+
149+
# [PowerShell](#tab/powershell)
121150
122151
You can use the following sample to create a YAML file to package a PowerShell app. PowerShell is supported only for Windows Azure Functions.
123152
@@ -137,6 +166,8 @@ steps:
137166
artifactName: 'drop'
138167
```
139168
169+
---
170+
140171
### Deploy your app
141172
142173
You must include one of the following YAML samples in your YAML file, depending on the hosting OS.
12.9 KB
Loading
12 KB
Loading
21 KB
Loading

0 commit comments

Comments
 (0)