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 VersionDetailed Description
This cmdlet creates a new vSAN file share in a specified file service domain.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | Specifies the new name of the vSAN file share. | true | False | |
Confirm | SwitchParameter | If 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. | false | False | |
FileServiceDomain | VsanFileServiceDomain | Specifies the vSAN file service domain to which the vSAN file share belongs. | true | True (ByValue) | |
FileShareNetworkPermission | VsanFileShareNetworkPermission[] | Specifies the new file share network permission settings of the vSAN file share. | false | False | |
HardQuotaGB | Decimal | Specifies the new hard quota in GB of the vSAN file share. | false | False | |
Label | Hashtable | Specifies the new labels of the vSAN file share. | false | False | |
Server | VIServer[] | 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. | false | False | |
SoftQuotaGB | Decimal | Specifies the new soft quota in GB of the vSAN file share. | false | False | |
StoragePolicy | SpbmStoragePolicy | Specifies the new storage policy of the vSAN file share. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
The newly created vSAN file share objectNotes
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.