func NewWindowsVirtualMachine(ctx *pulumi.Context,
	name string, args *WindowsVirtualMachineArgs, opts ...pulumi.ResourceOption) (*WindowsVirtualMachine, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.GalleryImageReference == nil {
		return nil, errors.New("invalid value for required argument 'GalleryImageReference'")
	}
	if args.LabName == nil {
		return nil, errors.New("invalid value for required argument 'LabName'")
	}
	if args.LabSubnetName == nil {
		return nil, errors.New("invalid value for required argument 'LabSubnetName'")
	}
	if args.LabVirtualNetworkId == nil {
		return nil, errors.New("invalid value for required argument 'LabVirtualNetworkId'")
	}
	if args.Password == nil {
		return nil, errors.New("invalid value for required argument 'Password'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.Size == nil {
		return nil, errors.New("invalid value for required argument 'Size'")
	}
	if args.StorageType == nil {
		return nil, errors.New("invalid value for required argument 'StorageType'")
	}
	if args.Username == nil {
		return nil, errors.New("invalid value for required argument 'Username'")
	}
	var resource WindowsVirtualMachine
	err := ctx.RegisterResource("azure:devtest/windowsVirtualMachine:WindowsVirtualMachine", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewWindowsVirtualMachine registers a new resource with the given unique name, arguments, and options.
NewWindowsVirtualMachine registers a new resource with the given unique name, arguments, and options.
// NewWindowsVirtualMachine registers a new resource with the given unique name arguments and options .
func NewWindowsVirtualMachine(ctx *pulumi.Context,
	name string, args *WindowsVirtualMachineArgs, opts ...pulumi.ResourceOption) (*WindowsVirtualMachine, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.GalleryImageReference == nil {
		return nil, errors.New("invalid value for required argument 'GalleryImageReference'")
	}
	if args.LabName == nil {
		return nil, errors.New("invalid value for required argument 'LabName'")
	}
	if args.LabSubnetName == nil {
		return nil, errors.New("invalid value for required argument 'LabSubnetName'")
	}
	if args.LabVirtualNetworkId == nil {
		return nil, errors.New("invalid value for required argument 'LabVirtualNetworkId'")
	}
	if args.Password == nil {
		return nil, errors.New("invalid value for required argument 'Password'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.Size == nil {
		return nil, errors.New("invalid value for required argument 'Size'")
	}
	if args.StorageType == nil {
		return nil, errors.New("invalid value for required argument 'StorageType'")
	}
	if args.Username == nil {
		return nil, errors.New("invalid value for required argument 'Username'")
	}
	var resource WindowsVirtualMachine
	err := ctx.RegisterResource("azure:devtest/windowsVirtualMachine:WindowsVirtualMachine", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewWindowsVirtualMachine ( ctx * pulumi . Context , name string , args * WindowsVirtualMachineArgs , opts ... pulumi . ResourceOption ) ( * WindowsVirtualMachine , error ) { if args == nil { return nil , errors . New ( " " ) } if args . GalleryImageReference == nil { return nil , errors . New ( " " ) } if args . LabName == nil { return nil , errors . New ( " " ) } if args . LabSubnetName == nil { return nil , errors . New ( " " ) } if args . LabVirtualNetworkId == nil { return nil , errors . New ( " " ) } if args . Password == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . Size == nil { return nil , errors . New ( " " ) } if args . StorageType == nil { return nil , errors . New ( " " ) } if args . Username == nil { return nil , errors . New ( " " ) } var resource WindowsVirtualMachine err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewWindowsVirtualMachine registers a new resource with the given unique name, arguments, and options.
NewWindowsVirtualMachine registers a new resource with the given unique name arguments and options .