Skip to content

Commit efb02d1

Browse files
author
Glenn Gailey
committed
Implement tabs in DevOps article
1 parent 4b0623a commit efb02d1

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

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

Lines changed: 15 additions & 13 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,27 +84,27 @@ steps:
8484
artifactName: 'drop'
8585
```
8686
87-
#### Python
87+
# [Python](#tab/python)
8888
89-
You can use one of the following samples to create a YAML file to build a Python app. Python is supported only for Linux Azure Functions.
89+
The YAML is slightly different, depending on your Python version. You can use one of the following samples to create a YAML file to build a Python app for a specific version. Python is supported only for function apps running on Linux.
9090
91-
###### Python 3.6
91+
**Version 3.7**
9292
9393
```yaml
9494
pool:
9595
vmImage: ubuntu-16.04
9696
steps:
9797
- task: UsePythonVersion@0
98-
displayName: "Setting python version to 3.6 as required by functions"
98+
displayName: "Setting python version to 3.7 as required by functions"
9999
inputs:
100-
versionSpec: '3.6'
100+
versionSpec: '3.7'
101101
architecture: 'x64'
102102
- bash: |
103103
if [ -f extensions.csproj ]
104104
then
105105
dotnet build extensions.csproj --output ./bin
106106
fi
107-
pip install --target="./.python_packages/lib/python3.6/site-packages" -r ./requirements.txt
107+
pip install --target="./.python_packages/lib/site-packages" -r ./requirements.txt
108108
- task: ArchiveFiles@2
109109
displayName: "Archive files"
110110
inputs:
@@ -117,23 +117,23 @@ steps:
117117
artifactName: 'drop'
118118
```
119119
120-
###### Python 3.7
120+
**Version 3.6**
121121
122122
```yaml
123123
pool:
124124
vmImage: ubuntu-16.04
125125
steps:
126126
- task: UsePythonVersion@0
127-
displayName: "Setting python version to 3.7 as required by functions"
127+
displayName: "Setting python version to 3.6 as required by functions"
128128
inputs:
129-
versionSpec: '3.7'
129+
versionSpec: '3.6'
130130
architecture: 'x64'
131131
- bash: |
132132
if [ -f extensions.csproj ]
133133
then
134134
dotnet build extensions.csproj --output ./bin
135135
fi
136-
pip install --target="./.python_packages/lib/site-packages" -r ./requirements.txt
136+
pip install --target="./.python_packages/lib/python3.6/site-packages" -r ./requirements.txt
137137
- task: ArchiveFiles@2
138138
displayName: "Archive files"
139139
inputs:
@@ -146,7 +146,7 @@ steps:
146146
artifactName: 'drop'
147147
```
148148
149-
#### PowerShell
149+
# [PowerShell](#tab/powershell)
150150
151151
You can use the following sample to create a YAML file to package a PowerShell app. PowerShell is supported only for Windows Azure Functions.
152152
@@ -166,6 +166,8 @@ steps:
166166
artifactName: 'drop'
167167
```
168168
169+
---
170+
169171
### Deploy your app
170172
171173
You must include one of the following YAML samples in your YAML file, depending on the hosting OS.

0 commit comments

Comments
 (0)