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 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.
      use withExistingSubnet(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 network
      subnetName - 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

      ContainerGroup.DefinitionStages.DnsConfigFork withNewVirtualNetwork(String addressSpace)
      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