New-AzNetworkCloudNetworkAttachmentObject
Cree un objeto en memoria para NetworkAttachment.
Sintaxis
New-AzNetworkCloudNetworkAttachmentObject
-AttachedNetworkId <String>
-IPAllocationMethod <VirtualMachineIPAllocationMethod>
[-DefaultGateway <DefaultGateway>]
[-Ipv4Address <String>]
[-Ipv6Address <String>]
[-Name <String>]
[<CommonParameters>]
Description
Cree un objeto en memoria para NetworkAttachment.
Ejemplos
Ejemplo 1: Crear un objeto en memoria para NetworkAttachment.
New-AzNetworkCloudNetworkAttachmentObject -AttachedNetworkId "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName" -IPAllocationMethod "Dynamic" -DefaultGateway "True" -Ipv4Address "198.51.100.1" -Ipv6Address "2001:0db8:0000:0000:0000:0000:0000:0001" -Name "netAttachName01"
AttachedNetworkId DefaultGateway IPAllocationMethod Ipv4Address Ipv6Address
----------------- -------------- ------------------ ----------- -----------
/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName True Dynamic 198.51.100.1 2001:0db8:0000:0000:0000:0000…
Cree un objeto en memoria para NetworkAttachment.
Parámetros
-AttachedNetworkId
Identificador de recurso de la red asociada conectada a la máquina virtual. Puede ser uno de los recursos cloudServicesNetwork, l3Network, l2Network o trunkedNetwork.
Tipo: | String |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | True |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-DefaultGateway
Indicador de si se trata de la puerta de enlace predeterminada. Solo se puede especificar una de las redes conectadas (incluidos los datos adjuntos de CloudServicesNetwork) para una sola máquina como True.
Tipo: | DefaultGateway |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-IPAllocationMethod
Mecanismo de asignación de IP para la máquina virtual. Dinámicos y estáticos solo son válidos para l3Network que también pueden especificar Deshabilitado. De lo contrario, Disabled es el único valor permitido.
Tipo: | VirtualMachineIPAllocationMethod |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | True |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-Ipv4Address
Dirección IPv4 de la máquina virtual.
This field is used only if the attached network has IPAllocationType of IPV4 or DualStack.
If IPAllocationMethod is:
Static - this field must contain a user specified IPv4 address from within the subnet specified in the attached network.
Dynamic - this field is read-only, but will be populated with an address from within the subnet specified in the attached network.
Disabled - this field will be empty.
Tipo: | String |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-Ipv6Address
Dirección IPv6 de la máquina virtual.
This field is used only if the attached network has IPAllocationType of IPV6 or DualStack.
If IPAllocationMethod is:
Static - this field must contain an IPv6 address range from within the range specified in the attached network.
Dynamic - this field is read-only, but will be populated with an range from within the subnet specified in the attached network.
Disabled - this field will be empty.
Tipo: | String |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-Name
Nombre de la interfaz de la red asociada. Si se especifica, el nombre de los datos adjuntos de red tiene una longitud máxima de 15 caracteres y debe ser único para esta máquina virtual. Si el usuario no especifica este valor, se usará el nombre de interfaz predeterminado del recurso de red. En el caso de un recurso CloudServicesNetwork, este nombre se omitirá.
Tipo: | String |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |