你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzStorageMoverNfsEndpoint
创建一个 Nfs 终结点资源,该资源表示数据传输源或目标。
语法
New-AzStorageMoverNfsEndpoint
-Name <String>
-ResourceGroupName <String>
-StorageMoverName <String>
[-SubscriptionId <String>]
-Host <String>
-Export <String>
[-NfsVersion <NfsVersion>]
[-Description <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
创建一个 Nfs 终结点资源,该资源表示数据传输源或目标。
示例
示例 1:创建 NFS 终结点
New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "10.0.0.1" -Export "/" -NfsVersion NFSv3 -Description "Description"
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/myEndpoint
Name : myEndpoint
Property : {
"endpointType": "NfsMount",
"provisioningState": "Succeeded",
"host": "10.0.0.1",
"export": "/"
}
SystemDataCreatedAt : 7/18/2022 7:28:30 AM
SystemDataCreatedBy : xxxxxxx
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 7/18/2022 7:28:30 AM
SystemDataLastModifiedBy : xxxxxxx
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/endpoints
此命令为存储移动器创建 NFS 终结点。
参数
-Confirm
提示你在运行 cmdlet 之前进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Description
终结点的说明。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Export
要从服务器导出的目录。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Host
导出文件系统的服务器主机名或 IP 地址。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
终结点资源的名称。
类型: | String |
别名: | EndpointName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-NfsVersion
NFS 协议版本。
类型: | NfsVersion |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 此名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-StorageMoverName
存储 Mover 资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |