New-VpcSubnet
This cmdlet creates Virtual Private Cloud (VPC) subnet.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Name | String | named |
|
Specifies the name of the Virtual Private Cloud (VPC) subnet that you want to create. |
required
|
Vpc | Vpc | named |
|
Specifies the name of the Virtual Private Cloud which you want to configure. |
optional | AccessMode | SubnetAccessMode | named |
|
Specifies the access mode of the Virtual Private Cloud (VPC) subnet. |
optional | Description | String | named |
|
Specifies the description of the Virtual Private Cloud (VPC) subnet |
optional | DhcpClasslessStaticRoute | DhcpClasslessStaticRoute[] | named |
|
Specifies the classless static route (DHCP option 121) provided by the DHCP server. |
optional | DhcpGenericOption | DhcpGenericOption[] | named |
|
Specifies the generic options of the DHCP server. |
optional | DhcpMode | DhcpMode | named |
|
Specifies the operational mode of the DHCP server within the VPC subnet. |
optional | GatewayConnectivity | SwitchParameter | named |
|
Specifies the connectivity status of the subnet from other subnets to the VPC. |
optional | IpAddress | String[] | named |
|
Specifies the IP addresses of the Virtual Private Cloud (VPC) subnet. |
optional | Ipv4Size | Int32 | named |
|
Specifies the size of the Virtual Private Cloud (VPC) subnet based on the estimated workload count. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | ReservedIpRange | String[] | named |
|
Specifies the reserved IP address ranges of the DHCP server. |
Output
VMware.VimAutomation.ViCore.Types.V1.Vpc.SubnetExamples
Example 1
New-VpcSubnet -Vpc clivpc -Name vpcSub1 -AccessMode Private -IpAddress 192.168.200.0/28
Creates a new Virtual Private Cloud (VPC) subnet named "vpcSub1" with IPv4 CIDR "192.168.200.0/28", accessible only within the application.
Example 2
New-VpcSubnet -Vpc clivpc -Name vpcSub2 -AccessMode Private -IpV4Size 16
Creates a new Virtual Private Cloud (VPC) subnet named "vpcSub2" with a size of "16", accessible only within the application.
Related Commands
Vpc
This cmdlet retrieves Virtual Private Clouds.
This cmdlet creates Virtual Private Clouds.
This cmdlet removes Virtual Private Clouds.
This cmdlet modifies the configuration of the Virtual Private Clouds.
VpcConnectivityProfile
This cmdlet retrieves Virtual Private Cloud Connectivity Profiles.
VpcDhcpClasslessStaticRoute
This cmdlet creates Dynamic Host Configuration Protocol classless static route option.
VpcDhcpGenericOption
This cmdlet creates Dynamic Host Configuration Protocol generic option.
VpcDhcpStaticBinding
This cmdlet retrieves the DHCP static bindings for Virtual Private Cloud Subnet.
This cmdlet creates the DHCP static binding for Virtual Private Cloud Subnet.
This cmdlet removes the DHCP static bindings for VPC Subnet.
This cmdlet modifies the DHCP static binding configurations for the Virtual Private Cloud Subnet.
VpcIpBlock
This cmdlet retrieves Virtual Private Clouds Ip Address Block.
VpcProject
This cmdlet retrieves Virtual Private Clouds Projects.
VpcServiceProfile
This cmdlet retrieves Virtual Private Cloud Service Profiles.
VpcStatistics
This cmdlet retrieves Virtual Private Clouds statistics.
VpcSubnet
This cmdlet retrieves Virtual Private Cloud Subnet.
This cmdlet creates Virtual Private Cloud (VPC) subnet.
This cmdlet removes Virtual Private Clouds Subnet.
This cmdlet configures Virtual Private Cloud (VPC) subnet.
VpcSubnetDhcpServerStatistics
This cmdlet retrieves Virtual Private Clouds Subnet dhcp server statistics.
VpcSubnetDhcpServerStatus
This cmdlet retrieves Virtual Private Clouds Subnet dhcp server status.
VpcSubnetStatistics
This cmdlet retrieves Virtual Private Cloud Subnet statistics.
VpcSubnetStatus
This cmdlet retrieves Virtual Private Cloud Subnet status.