Skip to content

Commit c9adc16

Browse files
committed
update
1 parent bd473a6 commit c9adc16

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

articles/azure-resource-manager/templates/deploy-to-azure-button.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,60 @@
22
title: Deploy from GitHub
33
description: Use deploy to Azure button to deploy templates in GitHub repository.
44
ms.topic: conceptual
5-
ms.date: 01/31/2020
5+
ms.date: 02/03/2020
66
---
77
# Use button to deploy from GitHub repository
88

99
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.
1010

1111
## Use common image
1212

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:
1414

15-
`https://aka.ms/deploytoazurebutton`
15+
```html
16+
<img src="https://aka.ms/deploytoazurebutton"/>
17+
```
1618

1719
The image appears as:
1820

1921
![Deploy to Azure button](https://aka.ms/deploytoazurebutton)
2022

21-
## Create URI for deploying template
23+
## Create URL for deploying template
2224

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:
2426

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`
2628

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.
2830

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`
3032

31-
First, encode it.
33+
Each link starts with the same base URL:
3234

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.
3438

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`
3640

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.
3842

39-
## Add link
43+
## Create Deploy to Azure button
4044

4145
The link you add to your web page or GitHub repository contains the URI and the image.
4246

4347
```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">
4549
<img src="https://aka.ms/deploytoazurebutton"/>
4650
</a>
4751
```
4852

4953
You can deploy the example template with the following button:
5054

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">
5256
<img src="https://aka.ms/deploytoazurebutton"/>
5357
</a>
5458

5559
## Next steps
5660

5761
- To learn more about templates, see [Understand the structure and syntax of Azure Resource Manager templates](template-syntax.md).
58-

0 commit comments

Comments
 (0)