|
2 | 2 | title: Deploy from GitHub
|
3 | 3 | description: Use deploy to Azure button to deploy templates in GitHub repository.
|
4 | 4 | ms.topic: conceptual
|
5 |
| -ms.date: 01/31/2020 |
| 5 | +ms.date: 02/03/2020 |
6 | 6 | ---
|
7 | 7 | # Use button to deploy from GitHub repository
|
8 | 8 |
|
9 | 9 | This article describes how to use the **Deploy to Azure** button to deploy templates from a GitHub repository. You can add the button directly to your GitHub repository or to a web page that references the repository.
|
10 | 10 |
|
11 | 11 | ## Use common image
|
12 | 12 |
|
13 |
| -To add the button to your web page or repository, use the image at: |
| 13 | +To add the button to your web page or repository, use the following image: |
14 | 14 |
|
15 |
| -`https://aka.ms/deploytoazurebutton` |
| 15 | +```html |
| 16 | +<img src="https://aka.ms/deploytoazurebutton"/> |
| 17 | +``` |
16 | 18 |
|
17 | 19 | The image appears as:
|
18 | 20 |
|
19 | 21 | 
|
20 | 22 |
|
21 |
| -## Create URI for deploying template |
| 23 | +## Create URL for deploying template |
22 | 24 |
|
23 |
| -Each link starts with the same base URI: |
| 25 | +To create the URL for your template, start with the raw URL to the template in your repo: |
24 | 26 |
|
25 |
| -`https://portal.azure.com/#create/Microsoft.Template/uri/` |
| 27 | +`https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-storage-account-create/azuredeploy.json` |
26 | 28 |
|
27 |
| -After that base, add the URL-encoded link to the raw template in GitHub. For example, to link to a template at: |
| 29 | +Then, URL encode it. |
28 | 30 |
|
29 |
| -`https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-aks/azuredeploy.json` |
| 31 | +`https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-storage-account-create%2Fazuredeploy.json` |
30 | 32 |
|
31 |
| -First, encode it. |
| 33 | +Each link starts with the same base URL: |
32 | 34 |
|
33 |
| -`https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-aks%2Fazuredeploy.json` |
| 35 | +`https://portal.azure.com/#create/Microsoft.Template/uri/` |
| 36 | + |
| 37 | +Add your URL-encoded template link to the base URL. |
34 | 38 |
|
35 |
| -Then, add it to the base URI. |
| 39 | +`https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-storage-account-create%2Fazuredeploy.json` |
36 | 40 |
|
37 |
| -`https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-aks%2Fazuredeploy.json` |
| 41 | +You have your full URL for the link. |
38 | 42 |
|
39 |
| -## Add link |
| 43 | +## Create Deploy to Azure button |
40 | 44 |
|
41 | 45 | The link you add to your web page or GitHub repository contains the URI and the image.
|
42 | 46 |
|
43 | 47 | ```html
|
44 |
| -<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-aks%2Fazuredeploy.json" target="_blank"> |
| 48 | +<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-storage-account-create%2Fazuredeploy.json" target="_blank"> |
45 | 49 | <img src="https://aka.ms/deploytoazurebutton"/>
|
46 | 50 | </a>
|
47 | 51 | ```
|
48 | 52 |
|
49 | 53 | You can deploy the example template with the following button:
|
50 | 54 |
|
51 |
| -<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-aks%2Fazuredeploy.json" target="_blank"> |
| 55 | +<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-storage-account-create%2Fazuredeploy.json" target="_blank"> |
52 | 56 | <img src="https://aka.ms/deploytoazurebutton"/>
|
53 | 57 | </a>
|
54 | 58 |
|
55 | 59 | ## Next steps
|
56 | 60 |
|
57 | 61 | - To learn more about templates, see [Understand the structure and syntax of Azure Resource Manager templates](template-syntax.md).
|
58 |
| - |
|
0 commit comments