Skip to content

Commit a0157b2

Browse files
committed
changes
1 parent 6bd4327 commit a0157b2

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

articles/batch/quick-create-cli.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ az batch account login \
7272

7373
## Create a pool of compute nodes
7474

75-
Run the [az batch pool create](/cli/azure/batch/pool#az-batch-pool-create) command to create a pool of Linux compute nodes in your Batch account. The following example creates a pool named `myPool` that consists of two Standard_A1_v2 size VMs running Ubuntu 18.04 LTS OS. This node size offers a good balance of performance versus cost for this quickstart example.
75+
Run the [az batch pool create](/cli/azure/batch/pool#az-batch-pool-create) command to create a pool of Linux compute nodes in your Batch account. The following example creates a pool named `myPool` that consists of two Standard_A1_v2 size VMs running Ubuntu 20.04 LTS OS. This node size offers a good balance of performance versus cost for this quickstart example.
7676

7777
```azurecli-interactive
7878
az batch pool create \
79-
--id myPool --vm-size Standard_A1_v2 \
79+
--id myPool \
80+
--image canonical:0001-com-ubuntu-server-focal:20_04-lts \
81+
--node-agent-sku-id "batch.node.ubuntu 20.04" \
8082
--target-dedicated-nodes 2 \
81-
--image canonical:ubuntuserver:18.04-LTS \
82-
--node-agent-sku-id "batch.node.ubuntu 18.04"
83+
--vm-size Standard_A1_v2
8384
```
8485

8586
Batch creates the pool immediately, but takes a few minutes to allocate and start the compute nodes. To see the pool status, use the [az batch pool show](/cli/azure/batch/pool#az-batch-pool-show) command. This command shows all the properties of the pool, and you can query for specific properties. The following command queries for the pool allocation state:

articles/batch/quick-create-portal.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.custom: mvc, mode-ui
88

99
# Quickstart: Use the Azure portal to create a Batch account and run a job
1010

11-
This quickstart shows you how to get started with Azure Batch by using the Azure portal. You create a Batch account that has a pool of virtual machines, or compute nodes. You then create and run a job with tasks that run on the pool nodes.
11+
This quickstart shows you how to get started with Azure Batch by using the Azure portal. You create a Batch account that has a pool of virtual machines (VMs), or compute nodes. You then create and run a job with tasks that run on the pool nodes.
1212

1313
After you complete this quickstart, you understand the [key concepts of the Batch service](batch-service-workflow-features.md) and are ready to use Batch with more realistic, larger scale workloads.
1414

@@ -47,7 +47,7 @@ You need a Batch account to create pools and jobs. The following steps create an
4747

4848
## Create a pool of compute nodes
4949

50-
Next, create a pool of Windows compute nodes in your Batch account. The following steps create a pool that consists of two Standard_A1_v2 size compute nodes running Windows Server 2019. This node size offers a good balance of performance versus cost for this quickstart.
50+
Next, create a pool of Windows compute nodes in your Batch account. The following steps create a pool that consists of two Standard_A1_v2 size VMs running Windows Server 2019. This node size offers a good balance of performance versus cost for this quickstart.
5151

5252
1. On your Batch account page, select **Pools** from the left navigation.
5353

@@ -65,7 +65,7 @@ Next, create a pool of Windows compute nodes in your Batch account. The followin
6565

6666
1. Accept the defaults for the remaining settings, and select **OK** at the bottom of the page.
6767

68-
Batch creates the pool immediately, but takes a few minutes to allocate and start the compute nodes. On the **Pools** page, select **myPool** to go to the **myPool** page and see the pool status of **Resizing** under **Essentials** > **Allocation state**. You can follow the next steps to create a job and tasks while the pool state is still resizing.
68+
Batch creates the pool immediately, but takes a few minutes to allocate and start the compute nodes. On the **Pools** page, you can select **myPool** to go to the **myPool** page and see the pool status of **Resizing** under **Essentials** > **Allocation state**. You can proceed to create a job and tasks while the pool state is still **Resizing** or **Starting**.
6969

7070
After a few minutes, the **Allocation state** changes to **Steady**, and the nodes start. To check the state of the nodes, select **Nodes** in the **myPool** page left navigation. When a node's state is **Idle**, it's ready to run tasks.
7171

@@ -101,29 +101,35 @@ The following procedure creates and runs two identical tasks in your job. Each t
101101

102102
1. Repeat the preceding steps to create a second task, but enter *myTask2* for **Task ID**.
103103

104-
After you create a task, Batch queues it to run on the pool. Once a node is available, the task runs on the node. In the quickstart example, if the first task is still running on one node, Batch starts the second task on the other node in the pool.
104+
After you create each task, Batch queues it to run on the pool. Once a node is available, the task runs on the node. In the quickstart example, if the first task is still running on one node, Batch starts the second task on the other node in the pool.
105105

106106
## View task output
107107

108-
The tasks complete in a couple of minutes. You can select **Refresh** at the top of the **Tasks** page to view task status.
108+
The tasks should complete in a couple of minutes. To update task status, select **Refresh** at the top of the **Tasks** page.
109109

110-
To view the output of a completed task, select the task from the **Tasks** page. On the task page, you can select the *stdout.txt* file to view the standard output of the task.
110+
To view the output of a completed task, you can select the task from the **Tasks** page. On the **myTask1** page, select the *stdout.txt* file to view the standard output of the task.
111111

112112
:::image type="content" source="media/quick-create-portal/task-page.png" alt-text="Screenshot of a task page for a completed Batch job.":::
113113

114114
The contents of the *stdout.txt* file are similar to the following example:
115115

116116
:::image type="content" source="media/quick-create-portal/task-output.png" alt-text="Screenshot of the standard output file from a completed task.":::
117117

118-
The standard output for this task shows the Azure Batch environment variables that are set on the node. You can refer to these environment variables in your Batch job task command lines, and in the apps and scripts the command lines run.
118+
The standard output for this task shows the Azure Batch environment variables that are set on the node. As long as this node exists, you can refer to these environment variables in Batch job task command lines, and in the apps and scripts the command lines run.
119119

120120
## Clean up resources
121121

122122
If you want to continue with Batch tutorials and samples, you can use the Batch account and linked storage account that you created in this quickstart. There's no charge for the Batch account itself.
123123

124124
Pools and nodes incur charges while the nodes are running, even if they aren't running jobs. When you no longer need a pool, delete it.
125125

126-
To delete a pool, on your Batch account page, select **Pools** from the left navigation. Select the pool to delete on the **Pools** page, and then select **Delete** on the pool page. Deleting a pool deletes all task output on the nodes, and the nodes themselves.
126+
To delete a pool:
127+
128+
1. On your Batch account page, select **Pools** from the left navigation.
129+
1. On the **Pools** page, select the pool to delete, and then select **Delete**.
130+
1. On the **Delete pool** screen, enter the name of the pool, and then select **Delete**.
131+
132+
Deleting a pool deletes all task output on the nodes, and the nodes themselves.
127133

128134
When you no longer need any of the resources you created for this quickstart, you can delete the resource group and all its resources, including the storage account, Batch account, and node pools. To delete the resource group, select **Delete resource group** at the top of the **qsBatch** resource group page. On the **Delete a resource group** screen, enter the resource group name *qsBatch*, and then select **Delete**.
129135

articles/batch/quick-run-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ After you complete this quickstart, you understand the [key concepts of the Batc
2525

2626
- A Batch account with a linked Azure Storage account. You can create the accounts by using any of the following methods: [Azure CLI](quick-create-cli.md) | [Azure portal](quick-create-portal.md) | [Bicep](quick-create-bicep.md) | [ARM template](quick-create-template.md) | [Terraform](quick-create-terraform.md).
2727

28-
- [Visual Studio 2017](https://www.visualstudio.com/vs) or later, or [.NET 6.0](https://dotnet.microsoft.com/download/dotnet) or later, for Linux or Windows.
28+
- [Visual Studio 2019](https://www.visualstudio.com/vs) or later, or [.NET 6.0](https://dotnet.microsoft.com/download/dotnet) or later, for Linux or Windows.
2929

3030
## Run the app
3131

0 commit comments

Comments
 (0)