你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzVMwareDatastore

获取数据存储

语法

Get-AzVMwareDatastore
   -ClusterName <String>
   -PrivateCloudName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwareDatastore
   -ClusterName <String>
   -Name <String>
   -PrivateCloudInputObject <IVMwareIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwareDatastore
   -ClusterName <String>
   -Name <String>
   -PrivateCloudName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwareDatastore
   -Name <String>
   -ClusterInputObject <IVMwareIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwareDatastore
   -InputObject <IVMwareIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

说明

获取数据存储

示例

示例 1:列出私有云群集中的数据存储。

Get-AzVMwareDatastore -ClusterName azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group

Name                 Status     ProvisioningState ResourceGroupName
----                 ------     ----------------- -----------------
azps_test_datastore  Accessible Succeeded         azps_test_group
azps_test_datastore1 Accessible Succeeded         azps_test_group

列出私有云群集中的数据存储。

示例 2:获取数据存储名称中的数据存储。

Get-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group

Name                Status     ProvisioningState ResourceGroupName
----                ------     ----------------- -----------------
azps_test_datastore Accessible Succeeded         azps_test_group

获取数据存储名称中的数据存储。

参数

-ClusterInputObject

标识参数

类型:IVMwareIdentity
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-ClusterName

群集的名称

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-DefaultProfile

DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。

类型:PSObject
别名:AzureRMContext, AzureCredential
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-InputObject

标识参数

类型:IVMwareIdentity
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-Name

数据存储的名称

类型:String
别名:DatastoreName
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-PrivateCloudInputObject

标识参数

类型:IVMwareIdentity
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-PrivateCloudName

私有云的名称

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-ResourceGroupName

资源组的名称。 此名称不区分大小写。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-SubscriptionId

目标订阅的 ID。 该值必须是 UUID。

类型:String[]
Position:Named
默认值:(Get-AzContext).Subscription.Id
必需:False
接受管道输入:False
接受通配符:False

输入

IVMwareIdentity

输出

IDatastore