Erstellen Sie ein Speicherobjekt für NetworkAttachment.
Parameter
-AttachedNetworkId
Die Ressourcen-ID des zugeordneten Netzwerks, das an den virtuellen Computer angefügt ist.
Dabei kann es sich um eine der Ressourcen "cloudServicesNetwork", "l3Network", "l2Network" oder "trunkedNetwork" sein.
Der Indikator, ob dies das Standardgateway ist.
Nur eines der angefügten Netzwerke (einschließlich der CloudServicesNetwork-Anlage) für einen einzelnen Computer kann als True angegeben werden.
Der IP-Zuordnungsmechanismus für den virtuellen Computer.
"Dynamic" und "Static" gelten nur für l3Network, das auch "Disabled" angeben kann.
Andernfalls ist Disabled der einzige zulässige Wert.
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.
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.
Der Schnittstellenname des zugeordneten Netzwerks.
Wenn angegeben, hat der Name der Netzwerkanlage eine maximale Länge von 15 Zeichen und muss für diesen virtuellen Computer eindeutig sein.
Wenn der Benutzer diesen Wert nicht angibt, wird der Standardschnittstellenname der Netzwerkressource verwendet.
Bei einer CloudServicesNetwork-Ressource wird dieser Name ignoriert.
Dieses Cmdlet unterstützt die allgemeinen Parameter -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction und -WarningVariable. Weitere Informationen findest du unter about_CommonParameters.