Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c28face

Browse files
committedJun 25, 2020
finished arm qs article
1 parent 13b6769 commit c28face

File tree

8 files changed

+86
-12
lines changed

8 files changed

+86
-12
lines changed
 

‎articles/cdn/create-profile-endpoint-template.md

Lines changed: 85 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,103 @@ Get started with Azure CDN by using an Azure Resource Manager Template. This te
1919

2020
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2121

22-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
23-
2422
## Create CDN profile and endpoint
2523

2624
This template is configured to create a:
2725

2826
* Profile
2927
* Endpoint
3028

31-
![New Resource Group](./media/create-profile-resource-manager-template/cdn-create-resource-group.png)
32-
3329
### Review the template
3430

35-
The template used in this quickstart is from [Azure Quickstart templates](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-nat-gateway-1-vm/azuredeploy.json)
31+
The template used in this quickstart is from [Azure Quickstart templates](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-cdn-with-custom-origin/azuredeploy.json)
32+
33+
:::code language="json" source="~/quickstart-templates/101-cdn-with-custom-origin/azuredeploy.json" range="1-125" highlight="46-117":::
34+
35+
36+
One Azure resource is defined in the template:
37+
38+
**Microsoft.Cdn**
39+
40+
* **[Microsoft.Cdn/profiles](https://docs.microsoft.com/azure/templates/microsoft.cdn/profiles)**
41+
42+
### Deploy the template
43+
44+
**Azure CLI**
45+
46+
```azurecli-interactive
47+
read -p "Enter the location (i.e. westcentralus): " location
48+
resourceGroupName="myResourceGroupCDN"
49+
templateUri="https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-cdn-with-custom-origin/azuredeploy.json"
50+
51+
az group create \
52+
--name $resourceGroupName \
53+
--location $location
54+
55+
az group deployment create \
56+
--resource-group $resourceGroupName \
57+
--template-uri $templateUri
58+
```
59+
60+
**Azure PowerShell**
61+
62+
```azurepowershell-interactive
63+
$location = Read-Host -Prompt "Enter the location (i.e. westcentralus)"
64+
$templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-cdn-with-custom-origin/azuredeploy.json"
65+
66+
$resourceGroupName = "myResourceGroupCDN"
67+
68+
New-AzResourceGroup -Name $resourceGroupName -Location $location
69+
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri $templateUri
70+
```
71+
72+
**Azure portal**
3673

37-
## References
74+
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cdn-with-custom-origin%2Fazuredeploy.json)
3875

39-
* CDN Profile - [Azure Resource Manager Template Reference](https://docs.microsoft.com/azure/templates/microsoft.cdn/2017-10-12/profiles)
40-
* CDN Endpoint - [Azure Resource Manager Template Reference Documentation](https://docs.microsoft.com/azure/templates/microsoft.cdn/2017-10-12/profiles/endpoints)
76+
## Review deployed resources
77+
78+
1. Sign in to the [Azure portal](https://portal.azure.com).
79+
80+
2. Select **Resource groups** from the left pane.
81+
82+
3. Select the resource group that you created in the previous section. The default resource group name is **myResourceGroupCDN**
83+
84+
4. Verify the following resources were created in the resource group:
85+
86+
![Azure CDN resource group](./media/create-profile-endpoint-template/cdn-profile-template-rg.png)
87+
88+
## Clean up resources
89+
90+
**Azure CLI**
91+
92+
When no longer needed, you can use the [az group delete](/cli/azure/group#az-group-delete) command to remove the resource group and all resources contained within.
93+
94+
```azurecli-interactive
95+
az group delete \
96+
--name myResourceGroupCDN
97+
```
98+
99+
**Azure PowerShell**
100+
101+
When no longer needed, you can use the [Remove-AzResourceGroup](https://docs.microsoft.com/powershell/module/az.resources/remove-azresourcegroup?view=latest) command to remove the resource group and all resources contained within.
102+
103+
```azurepowershell-interactive
104+
Remove-AzResourceGroup -Name myResourceGroupCDN
105+
```
106+
107+
**Azure portal**
108+
109+
When no longer needed, delete the resource group, CDN profile, and all related resources. Select the resource group **myResourceGroupCDN** that contains the CDN profile and endpoint, and then select **Delete**.
41110

42111
## Next steps
43112

44-
To learn about adding a custom domain to your CDN endpoint, see the following tutorial:
113+
In this quickstart, you created a:
114+
115+
* CDN Profile
116+
* Endpoint
117+
118+
To learn more about Azure CDN and Azure Resource Manager, continue to the articles below.
45119

46-
> [!div class="nextstepaction"]
47-
> [Tutorial: Add a custom domain to your Azure CDN endpoint](cdn-map-content-to-custom-domain.md)
120+
* Read an [Overview of Azure CDN](cdn-overview.md)
121+
* Learn more about [Azure Resource Manager](../azure-resource-manager/management/overview.md)
Loading

‎articles/virtual-network/quickstart-create-nat-gateway-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri
110110

111111
4. Verify the following resources were created in the resource group:
112112

113-
![Virtual Network NAT resource group](./media/quick-create-template/nat-gateway-template-rg.png)
113+
![Virtual Network NAT resource group](./media/create-profile-endpoint-template/nat-gateway-template-rg.png)
114114

115115
## Clean up resources
116116

0 commit comments

Comments
 (0)
Please sign in to comment.