DSCResources/DSC_VMNetworkAdapter/DSC_VMNetworkAdapter.schema.mof
[ClassVersion("2.0.0.0")]
Class VMNetworkAdapterNetworkSettings { [Write, Description("Specifies whether DHCP is enabled on the network adapter within the guest operating system.")] boolean DHCPEnabled; [Write, Description("IPAddress configured on the network adapter within the guest operating system.")] string IPAddress; [Write, Description("Subnet configured on the network adapter within the guest operating system.")] string Subnet; [Write, Description("Default IP gateway configured on the network adapter within the guest operating system.")] string DefaultGateway; [Write, Description("One or more DNS servers configured on the network adapter within the guest operating system.")] string DnsServer[]; }; [ClassVersion("2.0.0.0"), FriendlyName("VMNetworkAdapter")] class DSC_VMNetworkAdapter : OMI_BaseResource { [Key, Description("Unique string for identifying the resource instance.")] String Id; [Required, Description("Name of the network adapter as it appears either in the management OS or attached to a VM.")] String Name; [Required, Description("Virtual Switch name to connect to.")] String SwitchName; [Required, Description("Name of the VM to attach to. If you want to attach new VM Network adapter to the management OS, set this property to 'ManagementOS'.")] String VMName; [Write, Description("Use this to specify a Static MAC Address. If this parameter is not specified, dynamic MAC Address will be set.")] String MacAddress; [Write, Description("Network Settings of the network adapter. If this parameter is not supplied, DHCP will be used."), EmbeddedInstance("VMNetworkAdapterNetworkSettings")] String NetworkSetting; [Write, Description("Use this to specify a Vlan id on the Network Adapter.")] String VlanId; [Write, Description("Ensures that the VM Network Adapter is Present or Absent. The default value is `Present`."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; [Read, Description("Returns `$true` if the network adapter uses a dynamic MAC address.")] Boolean DynamicMacAddress; }; |