Interface ContainerGroup.DefinitionStages.WithNetworkProfile

    • Method Detail

      • withExistingSubnet

        ContainerGroup.DefinitionStages.DnsConfigFork withExistingSubnet​(Subnet subnet)
        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

        ContainerGroup.DefinitionStages.DnsConfigFork withExistingSubnet​(String subnetId)
        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