You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tutorial: Run a parallel workload with Azure Batch using the .NET API
11
11
12
-
Use Azure Batch to run large-scale parallel and high-performance computing (HPC) batch jobs efficiently in Azure. This tutorial walks through a C# example of running a parallel workload using Batch. You learn a common Batch application workflow and how to interact programmatically with Batch and Storage resources. You learn how to:
12
+
Use Azure Batch to run large-scale parallel and high-performance computing (HPC) batch jobs efficiently in Azure. This tutorial walks through a C# example of running a parallel workload using Batch. You learn a common Batch application workflow and how to interact programmatically with Batch and Storage resources.
13
13
14
14
> [!div class="checklist"]
15
-
> * Add an application package to your Batch account
16
-
> * Authenticate with Batch and Storage accounts
17
-
> * Upload input files to Storage
18
-
> * Create a pool of compute nodes to run an application
19
-
> * Create a job and tasks to process input files
20
-
> * Monitor task execution
21
-
> * Retrieve output files
15
+
> * Add an application package to your Batch account.
16
+
> * Authenticate with Batch and Storage accounts.
17
+
> * Upload input files to Storage.
18
+
> * Create a pool of compute nodes to run an application.
19
+
> * Create a job and tasks to process input files.
20
+
> * Monitor task execution.
21
+
> * Retrieve output files.
22
22
23
-
In this tutorial, you convert MP4 media files in parallel to MP3 formatusing the [ffmpeg](https://ffmpeg.org/) open-source tool.
23
+
In this tutorial, you convert MP4 media files to MP3 format, in parallel, by using the [ffmpeg](https://ffmpeg.org) open-source tool.
@@ -41,18 +41,20 @@ Sign in to [the Azure portal](https://portal.azure.com).
41
41
Use the Azure portal to add ffmpeg to your Batch account as an [application package](batch-application-packages.md). Application packages help you manage task applications and their deployment to the compute nodes in your pool.
42
42
43
43
1. In the Azure portal, click **More services** > **Batch accounts**, and select the name of your Batch account.
44
+
44
45
1. Click **Applications** > **Add**.
46
+
45
47
:::image type="content" source="./media/tutorial-parallel-dotnet/add-application.png" alt-text="Screenshot of the Applications section of the batch account.":::
46
48
47
-
1. Enter *ffmpeg* in the **Application Id** field, and a package version of *4.3.1* in the **Version** field. Select the ffmpeg zip file that you downloaded, and then select **OK**. The ffmpeg application package is added to your Batch account.
49
+
1. Enter *ffmpeg* in the **Application Id** field, and a package version of *4.3.1* in the **Version** field. Select the ffmpeg zip file that you downloaded, and then select **Submit**. The ffmpeg application package is added to your Batch account.
48
50
49
51
:::image type="content" source="./media/tutorial-parallel-dotnet/new-batch-application.png" alt-text="Screenshot of the ID and version fields in the Add application section.":::
[Download or clone the sample app](https://github.com/Azure-Samples/batch-dotnet-ffmpeg-tutorial) from GitHub. To clone the sample app repo with a Git client, use the following command:
Build and run the application in Visual Studio, or at the command line with the `dotnet build` and `dotnet run` commands. After running the application, review the code to learn what each part of the application does. For example, in Visual Studio:
90
92
91
-
* Right-click the solution in Solution Explorer and select **Build Solution**.
93
+
1. Right-click the solution in Solution Explorer and select **Build Solution**.
92
94
93
-
* Confirm the restoration of any NuGet packages, if you're prompted. If you need to download missing packages, ensure the [NuGet Package Manager](https://docs.nuget.org/consume/installing-nuget) is installed.
95
+
1. Confirm the restoration of any NuGet packages, if you're prompted. If you need to download missing packages, ensure the [NuGet Package Manager](https://docs.nuget.org/consume/installing-nuget) is installed.
94
96
95
-
Then run it. When you run the sample application, the console output is similar to the following. During execution, you experience a pause at `Monitoring all tasks for 'Completed' state, timeout in 00:30:00...` while the pool's compute nodes are started.
97
+
1. Run the solution. When you run the sample application, the console output is similar to the following. During execution, you experience a pause at `Monitoring all tasks for 'Completed' state, timeout in 00:30:00...` while the pool's compute nodes are started.
0 commit comments