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

	if args.Configuration == nil {
		return nil, errors.New("invalid value for required argument 'Configuration'")
	}
	if args.VirtualMachineId == nil {
		return nil, errors.New("invalid value for required argument 'VirtualMachineId'")
	}
	var resource ConfigurationPolicyAssignment
	err := ctx.RegisterResource("azure:compute/configurationPolicyAssignment:ConfigurationPolicyAssignment", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewConfigurationPolicyAssignment registers a new resource with the given unique name, arguments, and options.
NewConfigurationPolicyAssignment registers a new resource with the given unique name, arguments, and options.
// NewConfigurationPolicyAssignment registers a new resource with the given unique name arguments and options .
func NewConfigurationPolicyAssignment(ctx *pulumi.Context,
	name string, args *ConfigurationPolicyAssignmentArgs, opts ...pulumi.ResourceOption) (*ConfigurationPolicyAssignment, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Configuration == nil {
		return nil, errors.New("invalid value for required argument 'Configuration'")
	}
	if args.VirtualMachineId == nil {
		return nil, errors.New("invalid value for required argument 'VirtualMachineId'")
	}
	var resource ConfigurationPolicyAssignment
	err := ctx.RegisterResource("azure:compute/configurationPolicyAssignment:ConfigurationPolicyAssignment", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewConfigurationPolicyAssignment ( ctx * pulumi . Context , name string , args * ConfigurationPolicyAssignmentArgs , opts ... pulumi . ResourceOption ) ( * ConfigurationPolicyAssignment , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Configuration == nil { return nil , errors . New ( " " ) } if args . VirtualMachineId == nil { return nil , errors . New ( " " ) } var resource ConfigurationPolicyAssignment err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewConfigurationPolicyAssignment registers a new resource with the given unique name, arguments, and options.
NewConfigurationPolicyAssignment registers a new resource with the given unique name arguments and options .