PowerCLI Reference

New-VsanFileShare

Synopsis

This cmdlet creates a new vSAN file share in a specified file service domain.

Syntax

New-VsanFileShare [-Name] <String> [-Confirm] -FileServiceDomain <VsanFileServiceDomain> [-FileShareNetworkPermission <VsanFileShareNetworkPermission[]>] [-HardQuotaGB <Decimal>] [-Label <Hashtable>] [-Server <VIServer[]>] [-SoftQuotaGB <Decimal>] [-StoragePolicy <SpbmStoragePolicy>] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-VsanFileShare
Remove-VsanFileShare
Set-VsanFileShare

Detailed Description

This cmdlet creates a new vSAN file share in a specified file service domain.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameStringSpecifies the new name of the vSAN file share.trueFalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
FileServiceDomainVsanFileServiceDomainSpecifies the vSAN file service domain to which the vSAN file share belongs.trueTrue (ByValue)
FileShareNetworkPermissionVsanFileShareNetworkPermission[]Specifies the new file share network permission settings of the vSAN file share.falseFalse
HardQuotaGBDecimalSpecifies the new hard quota in GB of the vSAN file share.falseFalse
LabelHashtableSpecifies the new labels of the vSAN file share.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
SoftQuotaGBDecimalSpecifies the new soft quota in GB of the vSAN file share.falseFalse
StoragePolicySpbmStoragePolicySpecifies the new storage policy of the vSAN file share.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

The newly created vSAN file share object

Notes

Examples

-------------------------- Example 1 --------------------------

New-VsanFileShare -FileServiceDomain $fileServieDomain -Name "FileShare1" -FileShareNetworkPermission $permission

Creates a new vSAN file share named "FileShare1" in the $fileServieDomain file service domain with a $permission network permision.


Copyright © VMware, Inc. All rights reserved.