私は2つの同一のVMを持っています。最初の名前は比較的短い名前で、2番目の名前は65文字です。 New-SCVirtualNetworkAdapterが最初は成功するのに2番目は失敗するのはなぜですか?
New-SCVirtualNetworkAdapter -vm "TestVM_ced7319a-1159-4e8f-bc88-f1487491ef2b"
SlotId : 1
VirtualNetwork :
VMwarePortGroup :
MACAddressType : Dynamic
EthernetAddressType : Dynamic
PhysicalAddressType : Dynamic
MACAddress :
EthernetAddress :
PhysicalAddress :
RequiredBandwidth : 0
VirtualNetworkAdapterType : Emulated
VmwAdapterIndex :
LogicalNetwork :
VMNetwork :
VMNetworkServiceSetting :
VMSubnet :
PortClassification :
VirtualNetworkAdapterPortProfileSet :
LogicalSwitch :
GuestIPNetworkVirtualizationUpdatesEnabled : False
MACAddressSpoofingEnabled : False
MACAddressesSpoofingEnabled : False
VMNetworkOptimizationEnabled : False
VLanEnabled : False
VLanID : 0
UsesSriov : False
IsUsedForHostManagement : False
VirtualNetworkAdapterComplianceStatus : Compliant
TemplateNicName :
VirtualNetworkAdapterComplianceErrors : {}
PerfNetworkKBytesRead : 0
PerfNetworkKBytesWrite : 0
DeviceID : Microsoft:440E7589-D1F4-4C0A-8A9C-B2BCA6305A64\718032DA-6EFB-4EF4-8152-9A2FBDA945BF\1
IPv4AddressType : Dynamic
IPv6AddressType : Dynamic
IPv4Addresses : {}
IPv6Addresses : {}
PortACL :
ObjectType : VirtualNetworkAdapter
Accessibility : Public
Name : TestVM_ced7319a-1159-4e8f-bc88-f1487491ef2b
IsViewOnly : False
Description :
AddedTime : 11/26/2015 4:10:45 PM
ModifiedTime : 11/26/2015 4:10:48 PM
Enabled : True
MostRecentTask : Create network adapter
ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.ServerConnection
ID : 14f04617-249c-41ab-9d46-3abb9d972238
MarkedForDeletion : False
IsFullyCached : True
MostRecentTaskIfLocal : Create network adapter
New-SCVirtualNetworkAdapter -vm "TestVM_718cdf7b-e4c3-461a-93a8-07f20258c093AAAAAAAAAAAAAAAAAAAAAA"
New-SCVirtualNetworkAdapter : VMM is unable to process one or more of the provided cmdlet parameters. (Error ID: 1600)
Type Get-Help New-SCVirtualNetworkAdapter -full to view a list of defined parameters and complete descriptions. Then
try the operation again.
At line:1 char:1
+ New-SCVirtualNetworkAdapter -vm "TestVM_718cdf7b-e4c3-461a-93a8-07f20258c093AAAA ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (:) [New-SCVirtualNetworkAdapter], CarmineException
+ FullyQualifiedErrorId : 1600,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.NewNICCmdlet
System Center Virtual Machine Manager(SCVMM)コンソールのVM nameの長さはMicrosoftによって64文字に制限されています。そのため、VMMPowerShellコマンドレットは経験したとおりに動作します。