| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Batch.Protocol.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The network configuration for the Job. |
| | 18 | | /// </summary> |
| | 19 | | public partial class JobNetworkConfiguration |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the JobNetworkConfiguration class. |
| | 23 | | /// </summary> |
| 963 | 24 | | public JobNetworkConfiguration() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 963 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the JobNetworkConfiguration class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="subnetId">The ARM resource identifier of the virtual |
| | 33 | | /// network subnet which Compute Nodes running Tasks from the Job will |
| | 34 | | /// join for the duration of the Task. This will only work with a |
| | 35 | | /// VirtualMachineConfiguration Pool.</param> |
| 0 | 36 | | public JobNetworkConfiguration(string subnetId) |
| | 37 | | { |
| 0 | 38 | | SubnetId = subnetId; |
| | 39 | | CustomInit(); |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// An initialization method that performs custom operations like setting defaults |
| | 44 | | /// </summary> |
| | 45 | | partial void CustomInit(); |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// Gets or sets the ARM resource identifier of the virtual network |
| | 49 | | /// subnet which Compute Nodes running Tasks from the Job will join for |
| | 50 | | /// the duration of the Task. This will only work with a |
| | 51 | | /// VirtualMachineConfiguration Pool. |
| | 52 | | /// </summary> |
| | 53 | | /// <remarks> |
| | 54 | | /// The virtual network must be in the same region and subscription as |
| | 55 | | /// the Azure Batch Account. The specified subnet should have enough |
| | 56 | | /// free IP addresses to accommodate the number of Compute Nodes which |
| | 57 | | /// will run Tasks from the Job. This can be up to the number of |
| | 58 | | /// Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service |
| | 59 | | /// principal must have the 'Classic Virtual Machine Contributor' |
| | 60 | | /// Role-Based Access Control (RBAC) role for the specified VNet so |
| | 61 | | /// that Azure Batch service can schedule Tasks on the Nodes. This can |
| | 62 | | /// be verified by checking if the specified VNet has any associated |
| | 63 | | /// Network Security Groups (NSG). If communication to the Nodes in the |
| | 64 | | /// specified subnet is denied by an NSG, then the Batch service will |
| | 65 | | /// set the state of the Compute Nodes to unusable. This is of the form |
| | 66 | | /// /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/ |
| | 67 | | /// If the specified VNet has any associated Network Security Groups |
| | 68 | | /// (NSG), then a few reserved system ports must be enabled for inbound |
| | 69 | | /// communication from the Azure Batch service. For Pools created with |
| | 70 | | /// a Virtual Machine configuration, enable ports 29876 and 29877, as |
| | 71 | | /// well as port 22 for Linux and port 3389 for Windows. Port 443 is |
| | 72 | | /// also required to be open for outbound connections for |
| | 73 | | /// communications to Azure Storage. For more details see: |
| | 74 | | /// https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuratio |
| | 75 | | /// </remarks> |
| | 76 | | [JsonProperty(PropertyName = "subnetId")] |
| 2296 | 77 | | public string SubnetId { get; set; } |
| | 78 | |
|
| | 79 | | } |
| | 80 | | } |