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

	if args.DataSourceType == nil {
		return nil, errors.New("invalid value for required argument 'DataSourceType'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.StorageAccountIds == nil {
		return nil, errors.New("invalid value for required argument 'StorageAccountIds'")
	}
	if args.WorkspaceResourceId == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceResourceId'")
	}
	var resource LinkedStorageAccount
	err := ctx.RegisterResource("azure:loganalytics/linkedStorageAccount:LinkedStorageAccount", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewLinkedStorageAccount registers a new resource with the given unique name, arguments, and options.
NewLinkedStorageAccount registers a new resource with the given unique name, arguments, and options.
// NewLinkedStorageAccount registers a new resource with the given unique name arguments and options .
func NewLinkedStorageAccount(ctx *pulumi.Context,
	name string, args *LinkedStorageAccountArgs, opts ...pulumi.ResourceOption) (*LinkedStorageAccount, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DataSourceType == nil {
		return nil, errors.New("invalid value for required argument 'DataSourceType'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.StorageAccountIds == nil {
		return nil, errors.New("invalid value for required argument 'StorageAccountIds'")
	}
	if args.WorkspaceResourceId == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceResourceId'")
	}
	var resource LinkedStorageAccount
	err := ctx.RegisterResource("azure:loganalytics/linkedStorageAccount:LinkedStorageAccount", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewLinkedStorageAccount ( ctx * pulumi . Context , name string , args * LinkedStorageAccountArgs , opts ... pulumi . ResourceOption ) ( * LinkedStorageAccount , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DataSourceType == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . StorageAccountIds == nil { return nil , errors . New ( " " ) } if args . WorkspaceResourceId == nil { return nil , errors . New ( " " ) } var resource LinkedStorageAccount err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewLinkedStorageAccount registers a new resource with the given unique name, arguments, and options.
NewLinkedStorageAccount registers a new resource with the given unique name arguments and options .