共用方式為


IWithCreate Interface

Definition

The stage of the virtual network definition which contains all the minimum required inputs for the resource to be created, but also allows for any other optional settings to be specified, except for adding subnets. Subnets can be added only right after the address space is explicitly specified.

public interface IWithCreate : Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithDdosProtectionPlan, Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithVmProtection, Microsoft.Azure.Management.ResourceManager.Fluent.Core.Resource.Definition.IDefinitionWithTags<Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithCreate>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.INetwork>
type IWithCreate = interface
    interface ICreatable<INetwork>
    interface IIndexable
    interface IDefinitionWithTags<IWithCreate>
    interface IWithDdosProtectionPlan
    interface IWithVmProtection
Public Interface IWithCreate
Implements ICreatable(Of INetwork), IDefinitionWithTags(Of IWithCreate), IWithDdosProtectionPlan, IWithVmProtection
Derived
Implements

Properties

Key (Inherited from IIndexable)
Name

Gets the name of the creatable resource.

(Inherited from ICreatable<T>)

Methods

Create()

Execute the create request.

(Inherited from ICreatable<T>)
CreateAsync(CancellationToken, Boolean)

Puts the request into the queue and allow the HTTP client to execute it when system resources are available.

(Inherited from ICreatable<T>)
WithAddressSpace(String)

Explicitly adds an address space to the virtual network. If no address spaces are explicitly specified, a default address space with the CIDR "10.0.0.0/16" will be assigned to the virtual network. Note that this method's effect is additive, i.e. each time it is used, a new address space is added to the network. This method does not check for conflicts or overlaps with other address spaces. If there is a conflict, a cloud exception may be thrown at the time the network is created.

WithDnsServer(String)

Specifies the IP address of an existing DNS server to associate with the virtual network. Note this method's effect is additive, i.e. each time it is used, a new dns server is added to the network.

WithExistingDdosProtectionPlan(String)

Associates existing DDoS protection plan with the virtual network.

(Inherited from IWithDdosProtectionPlan)
WithNewDdosProtectionPlan()

Creates a new DDoS protection plan in the same region and group as the virtual network and associates it with the resource. The internal name the DDoS protection plan will be derived from the resource's name.

(Inherited from IWithDdosProtectionPlan)
WithTag(String, String)

Adds a tag to the resource.

(Inherited from IDefinitionWithTags<T>)
WithTags(IDictionary<String,String>)

Specifies tags for the resource as a {@link Map}.

(Inherited from IDefinitionWithTags<T>)
WithVmProtection()

Enable VM protection for all the subnets in the virtual network.

(Inherited from IWithVmProtection)

Applies to