Skip to content

Commit 0f205a4

Browse files
Merge pull request #114138 from JnHs/jh-batch-qs
template quickstart
2 parents 546935e + 6dc9995 commit 0f205a4

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

articles/batch/TOC.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
href: quick-run-dotnet.md
1616
- name: Run a Batch job - Python
1717
href: quick-run-python.md
18+
- name: Create a Batch account - ARM template
19+
href: quick-create-template.md
20+
displayName: Resource Manager
1821
- name: Tutorials
1922
items:
2023
- name: Parallel file processing - .NET
390 KB
Loading
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: Azure Quickstart - Create a Batch account - Azure Resource Manager template
3+
description: Quickly learn to run a Batch job with the Azure CLI. Create and manage Azure resources from the command line or in scripts.
4+
ms.topic: quickstart
5+
ms.date: 05/19/2020
6+
ms.custom: subject-armqs
7+
---
8+
9+
# Quickstart: Create a Batch account by using Azure Resource Manager template
10+
11+
You need a Batch account to create compute resources (pools of compute nodes) and Batch jobs. You can link an Azure Storage account with your Batch account, which is useful to deploy applications and store input and output data for most real-world workloads.
12+
13+
This quickstart shows how to use an Azure Resource Manager template to create a Batch account, including storage. After completing this quickstart, you will understand the key concepts of the Batch service and be ready to try Batch with more realistic workloads at larger scale.
14+
15+
[!INCLUDE [About Azure Resource Manager](../../includes/resource-manager-quickstart-introduction.md)]
16+
17+
## Prerequisites
18+
19+
You must have an active Azure subscription.
20+
21+
- [!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
22+
23+
## Create a storage account
24+
25+
### Review the template
26+
27+
The template used in this quickstart is from [Azure Quickstart templates](https://github.com/Azure/azure-quickstart-templates/tree/master/101-batchaccount-with-storage).
28+
29+
:::code language="json" source="~/quickstart-templates/101-batchaccount-with-storage/azuredeploy.json":::
30+
31+
Two Azure resources are defined in the template:
32+
33+
- [Microsoft.Storage/storageAccounts](https://docs.microsoft.com/azure/templates/microsoft.storage/storageaccounts): Creates a storage account.
34+
- [Microsoft.Batch/batchAccounts](https://docs.microsoft.com/azure/templates/microsoft.batch/batchaccounts): Creates a Batch account.
35+
36+
### Deploy the template
37+
38+
1. Select the following image to sign in to Azure and open a template. The template creates an Azure Batch account and a storage account.
39+
40+
[![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-batchaccount-with-storage%2Fazuredeploy.json)
41+
42+
1. Select or enter the following values.
43+
44+
![Resource Manager template, Batch account creation, deploy portal](media/quick-create-template/batch-template.png)
45+
46+
- **Subscription**: select an Azure subscription.
47+
- **Resource group**: select **Create new**, enter a unique name for the resource group, and then click **OK**.
48+
- **Location**: select a location. For example, **Central US**.
49+
- **Batch Account Name**: Leave the default value.
50+
- **Storage Accountsku**: select a storage account type. For example, **Standard_LRS**.
51+
- **Location**: Leave the default so that the resources will be in the same location as your resource group.
52+
- I agree to the terms and conditions state above: **Select**.
53+
54+
1. Select **Purchase**.
55+
56+
After a few minutes, you should see a notification that the Batch account was successfully created.
57+
58+
In this example, the Azure portal is used to deploy the template. In addition to the Azure portal, you can also use the Azure PowerShell, Azure CLI, and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-powershell.md).
59+
60+
## Validate the deployment
61+
62+
You can validate the deployment in the Azure portal by navigating to the resource group you created. In the **Overview** screen, confirm that the Batch account and the storage account are present.
63+
64+
## Clean up resources
65+
66+
If you plan to continue on to work with subsequent [tutorials](./tutorial-parallel-dotnet.md), you may wish to leave these resources in place. Or, if you no longer need them, you can [delete the resource group](../azure-resource-manager/management/delete-resource-group.md?tabs=azure-portal#delete-resource-group), which will also delete the Batch account and the storage account that you created.
67+
68+
## Next steps
69+
70+
In this quickstart, you created a Batch account and a storage account. To learn more about Azure Batch, continue to the Azure Batch tutorials.
71+
72+
> [!div class="nextstepaction"]
73+
> [Azure Batch tutorials](./tutorial-parallel-dotnet.md)

0 commit comments

Comments
 (0)