diff --git a/docs/13-batch-shipyard-configuration-pool.md b/docs/13-batch-shipyard-configuration-pool.md index b55cfc4a..49737be8 100644 --- a/docs/13-batch-shipyard-configuration-pool.md +++ b/docs/13-batch-shipyard-configuration-pool.md @@ -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: @@ -111,6 +118,9 @@ pool_specification: subnet: name: subnet-for-batch-vms address_prefix: 10.0.0.0/20 + public_ips: + - /subscriptions//resourceGroups//providers/Microsoft.Network/publicIPAddresses/ + - /subscriptions//resourceGroups//providers/Microsoft.Network/publicIPAddresses/ certificates: sha1-thumbprint: visibility: @@ -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. diff --git a/docs/14-batch-shipyard-configuration-jobs.md b/docs/14-batch-shipyard-configuration-jobs.md index db783d44..42f13a13 100644 --- a/docs/14-batch-shipyard-configuration-jobs.md +++ b/docs/14-batch-shipyard-configuration-jobs.md @@ -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: diff --git a/recipes/DotNet-Windows/config/jobs.yaml b/recipes/DotNet-Windows/config/jobs.yaml index 07cb4619..2a4e97f2 100644 --- a/recipes/DotNet-Windows/config/jobs.yaml +++ b/recipes/DotNet-Windows/config/jobs.yaml @@ -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!"