Interface ContainerGroup.DefinitionStages.WithNetworkProfile
- All Known Subinterfaces:
ContainerGroup.Definition,ContainerGroup.DefinitionStages.DnsConfigFork,ContainerGroup.DefinitionStages.WithCreate,ContainerGroup.DefinitionStages.WithNextContainerInstance,ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate
- Enclosing interface:
ContainerGroup.DefinitionStages
public static interface ContainerGroup.DefinitionStages.WithNetworkProfile
The stage of the container group definition allowing to specify the network profile id.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingSubnet(Subnet subnet) Specifies the subnet of virtual network for a container group.withExistingSubnet(String subnetId) Specifies the subnet of virtual network for a container group.withNewNetworkProfileOnExistingVirtualNetwork(String virtualNetworkId, String subnetName) Deprecated.withNewVirtualNetwork(String addressSpace) Creates a new virtual network to associate with network profile in a container group.
-
Method Details
-
withExistingSubnet
Specifies the subnet of virtual network for a container group.- Parameters:
subnet- the subnet. the subnet must have delegation for 'Microsoft.ContainerInstance/containerGroups'.- Returns:
- the next stage of the definition
-
withExistingSubnet
Specifies the subnet of virtual network for a container group.- Parameters:
subnetId- the ID of the subnet. the subnet must have delegation for 'Microsoft.ContainerInstance/containerGroups'.- Returns:
- the next stage of the definition
-
withNewNetworkProfileOnExistingVirtualNetwork
@Deprecated ContainerGroup.DefinitionStages.DnsConfigFork withNewNetworkProfileOnExistingVirtualNetwork(String virtualNetworkId, String subnetName) Deprecated.usewithExistingSubnet(Subnet). The NetworkProfile configuration of ContainerGroup is deprecated by service due to security concern.Specifies the virtual network in network profile for a container group.- Parameters:
virtualNetworkId- the ID of the virtual networksubnetName- the name of the subnet within the virtual network.; the subnet must have delegation for 'Microsoft.ContainerInstance/containerGroups'.- Returns:
- the next stage of the definition
-
withNewVirtualNetwork
Creates a new virtual network to associate with network profile in a container group.- Parameters:
addressSpace- the address space for the virtual network- Returns:
- the next stage of the definition
-
withExistingSubnet(Subnet).