New-VsanFileShare
This cmdlet creates a new vSAN file share in a specified file service domain.
Syntax
-FileServiceDomain
<VsanFileServiceDomain>
-Name <String>
[-FileShareNetworkPermission <VsanFileShareNetworkPermission[]>]
[-HardQuotaGB <Decimal>]
[-Label <Hashtable>]
[-Server <VIServer[]>]
[-SoftQuotaGB <Decimal>]
[-StoragePolicy <SpbmStoragePolicy>]
[CommonParameters]
-Name <String>
[-FileShareNetworkPermission <VsanFileShareNetworkPermission[]>]
[-HardQuotaGB <Decimal>]
[-Label <Hashtable>]
[-Server <VIServer[]>]
[-SoftQuotaGB <Decimal>]
[-StoragePolicy <SpbmStoragePolicy>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
VsanFileServiceDomain | named |
|
Specifies the vSAN file service domain to which the vSAN file share belongs. | required |
|
String | named |
|
Specifies the new name of the vSAN file share. | optional |
|
VsanFileShareNetworkPermission[] | named |
|
Specifies the new file share network permission settings of the vSAN file share. | optional |
|
Decimal | named |
|
Specifies the new hard quota in GB of the vSAN file share. | optional |
|
Hashtable | named |
|
Specifies the new labels of the vSAN file share. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. | optional |
|
Decimal | named |
|
Specifies the new soft quota in GB of the vSAN file share. | optional |
|
SpbmStoragePolicy | named |
|
Specifies the new storage policy of the vSAN file share. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.FileService.VsanFileShare
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.
Related Commands
VsanFileServerIpConfig
This cmdlet creates a vSAN file service IP configuration at the client side.
VsanFileServiceDomain
This cmdlet retrieves vSAN file service domains in a vSAN cluster.
This cmdlet modifies the settings of the given vSAN file domains.
This cmdlet removes the specified vSAN file service domain from the vSAN clusters.
This cmdlet creates a file service domain in a vSAN cluster.
VsanFileServiceOvf
This cmdlet downloads a file service OVF file of the specified URL into the OVF repository in vSphere.
VsanFileServiceOvfInfo
This cmdlet retrieves a vSAN file service OVF information.
VsanFileShare
This cmdlet retrieves vSAN file shares based on the name or ID filter.
This cmdlet modifies the configuration of a specified vSAN file share.
This cmdlet removes vSAN file shares.
This cmdlet creates a new vSAN file share in a specified file service domain.
VsanFileShareNetworkPermission
New-VsanFileShareNetworkPermission -IPSetOrSubnet -VsanFileShareAccessPermission [-AllowSquashRoot] [-WhatIf] [-Confirm] []
VsanFileShareSnapshot
This cmdlet retrieves vSAN file share snapshots based on the name or other filters.
This cmdlet removes vSAN file share snapshots.
This cmdlet creates a vSAN file share snapshot for the specified vSAN file share.