Skip to content

Batch Samples#46786

Open
wiboris wants to merge 4 commits intomainfrom
wiboris/batchsamples
Open

Batch Samples#46786
wiboris wants to merge 4 commits intomainfrom
wiboris/batchsamples

Conversation

@wiboris
Copy link
Copy Markdown
Member

@wiboris wiboris commented May 7, 2026

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings May 7, 2026 22:25
@github-actions github-actions Bot added the Batch label May 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds several new Azure Batch Python sample/snippet files under sdk/batch/azure-batch/samples/, seemingly extracted from Batch documentation articles to demonstrate common scenarios (quick run, pools, autoscale, containers, SIG images, etc.).

Changes:

  • Added multiple new snippet-style sample scripts for Azure Batch scenarios.
  • Introduced sample code for pool configuration variants (endpoint configuration, ephemeral OS disk, container workloads, SIG images).
  • Added a quick-run and parallel-processing tutorial sample.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
sdk/batch/azure-batch/samples/tutorial_parallel_python.py Adds parallel processing tutorial snippet (Batch + Storage) with pool/job/task helpers.
sdk/batch/azure-batch/samples/quick_run_python.py Adds “quick run” snippet for creating pool/job/tasks and viewing task output.
sdk/batch/azure-batch/samples/pool_endpoint_configuration.py Adds snippets demonstrating inbound NAT pool endpoint configuration allow/deny rules.
sdk/batch/azure-batch/samples/create_pool_ephemeral_os_disk.py Adds snippet for configuring an ephemeral OS disk on a pool VM configuration.
sdk/batch/azure-batch/samples/batch_user_accounts.py Adds snippets for task auto-user and pool user accounts.
sdk/batch/azure-batch/samples/batch_sig_images.py Adds snippet demonstrating pool creation using Azure Compute Gallery (SIG) image reference.
sdk/batch/azure-batch/samples/batch_linux_nodes.py Adds snippets for Linux pool creation, supported image selection, and SSH user creation.
sdk/batch/azure-batch/samples/batch_docker_container_workloads.py Adds snippets for container workloads (no prefetch / Docker Hub / ACR) and container task settings.
sdk/batch/azure-batch/samples/batch_automatic_scaling.py Adds snippet for creating a pool and enabling autoscale with a formula.

Comment thread sdk/batch/azure-batch/samples/tutorial_parallel_python.py Outdated
Comment thread sdk/batch/azure-batch/samples/tutorial_parallel_python.py Outdated
Comment thread sdk/batch/azure-batch/samples/tutorial_parallel_python.py Outdated
Comment thread sdk/batch/azure-batch/samples/batch_automatic_scaling.py Outdated
Comment thread sdk/batch/azure-batch/samples/batch_docker_container_workloads.py Outdated
Comment thread sdk/batch/azure-batch/samples/quick_run_python.py
Comment thread sdk/batch/azure-batch/samples/batch_sig_images.py Outdated
Comment thread sdk/batch/azure-batch/samples/batch_user_accounts.py Outdated
Comment thread sdk/batch/azure-batch/samples/tutorial_parallel_python.py
Comment thread sdk/batch/azure-batch/samples/tutorial_parallel_python.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants