Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Add doc note regarding Windows env vars
Browse files Browse the repository at this point in the history
- Update DotNet recipe to use container default working dir option
- Partially addresses #311
  • Loading branch information
alfpark committed Sep 9, 2019
1 parent 1706902 commit 74d339c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/13-batch-shipyard-configuration-pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
This page contains in-depth details on how to configure the pool
configuration file for Batch Shipyard.

## Considerations
- Note that environment variable conventions used below are for Linux.
Windows environment variables should follow Windows conventions. For example,
the Azure Batch Shared Directory on compute nodes are referenced in Linux
as `$AZ_BATCH_NODE_SHARED_DIR`, while on Windows, it would be
`%AZ_BATCH_NODE_SHARED_DIR%`.

## Schema
The pool schema is as follows:

Expand Down Expand Up @@ -111,6 +118,9 @@ pool_specification:
subnet:
name: subnet-for-batch-vms
address_prefix: 10.0.0.0/20
public_ips:
- /subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Network/publicIPAddresses/<public_ip_name1>
- /subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Network/publicIPAddresses/<public_ip_name2>
certificates:
sha1-thumbprint:
visibility:
Expand Down Expand Up @@ -517,6 +527,11 @@ rules on these ports.
connecting to the remote access port. Take care when specifying
`deny` rules when your nodes must make use of SSH or RDP to perform
actions between compute nodes.
* (optional) `public_ips` property defines a list of any pre-defined
Azure-allocated Public IP addresses that are assigned to the pool. These
must not already be bound and there must be a sufficient number of public
IPs to cover the number of compute nodes in a pool (or any potential future
resizes). These must be fully-qualified ARM Public IP resource ids.
* (optional) `certificates` property defines any certificate references to
add on this pool. These certificates must already be present on the Batch
account and are only applied to new pool allocations.
Expand Down
5 changes: 5 additions & 0 deletions docs/14-batch-shipyard-configuration-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ or `additional_singularity_options`.
within the `$AZ_BATCH_TASK_DIR`. You can egress these logs using the
`data files task` command (e.g.,
`data files task --filespec myjobid,mytaskid,stdout.txt`).
- Note that environment variable conventions used below are for Linux.
Windows environment variables should follow Windows conventions. For example,
the Azure Batch Shared Directory on compute nodes are referenced in Linux
as `$AZ_BATCH_NODE_SHARED_DIR`, while on Windows, it would be
`%AZ_BATCH_NODE_SHARED_DIR%`.

## Schema
The jobs schema is as follows:
Expand Down
3 changes: 1 addition & 2 deletions recipes/DotNet-Windows/config/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ job_specifications:
- id: dotnet-app
tasks:
- docker_image: microsoft/dotnet-samples:dotnetapp-nanoserver-1809
additional_docker_run_options:
- --workdir C:\\app # this is needed as Batch sets the working directory to the Batch task
default_working_dir: container # this is needed as the default is to set the working directory to the Batch task
command: "Hello from Batch Shipyard!"

0 comments on commit 74d339c

Please sign in to comment.