Conversation
Contributor
There was a problem hiding this comment.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
General Guidelines and Best Practices
Testing Guidelines