Class: Azure::Batch::Mgmt::V2018_12_01::Models::NetworkConfiguration
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2018_12_01::Models::NetworkConfiguration
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-12-01/generated/azure_mgmt_batch/models/network_configuration.rb
Overview
The network configuration for a pool.
Instance Attribute Summary collapse
-
#endpoint_configuration ⇒ PoolEndpointConfiguration
compute nodes in the Batch pool.
-
#subnet_id ⇒ String
subnet which the compute nodes of the pool will join.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for NetworkConfiguration class as Ruby Hash.
Instance Attribute Details
#endpoint_configuration ⇒ PoolEndpointConfiguration
compute nodes in the Batch pool. Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property.
47 48 49 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_configuration.rb', line 47 def endpoint_configuration @endpoint_configuration end |
#subnet_id ⇒ String
subnet which the compute nodes of the pool will join. This is of the form /subscriptions/subscription/resourceGroups/group/providers/provider/virtualNetworks/network/subnets/subnet. The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn’t have enough free IP addresses, the pool will partially allocate compute nodes, and a resize error will occur. The ‘MicrosoftAzureBatch’ service principal must have the ‘Classic Virtual Machine Contributor’ Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. For pools created via virtualMachineConfiguration the Batch account must have poolAllocationMode userSubscription in order to use a VNet. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For more details see: docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
42 43 44 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_configuration.rb', line 42 def subnet_id @subnet_id end |
Class Method Details
.mapper ⇒ Object
Mapper for NetworkConfiguration class as Ruby Hash. This will be used for serialization/deserialization.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_configuration.rb', line 54 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'NetworkConfiguration', type: { name: 'Composite', class_name: 'NetworkConfiguration', model_properties: { subnet_id: { client_side_validation: true, required: false, serialized_name: 'subnetId', type: { name: 'String' } }, endpoint_configuration: { client_side_validation: true, required: false, serialized_name: 'endpointConfiguration', type: { name: 'Composite', class_name: 'PoolEndpointConfiguration' } } } } } end |