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

Get-AzStorageMover

获取存储移动器资源。

语法

Get-AzStorageMover
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStorageMover
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStorageMover
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStorageMover
   -InputObject <IStorageMoverIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

说明

获取存储移动器资源。

示例

示例 1:获取子加密中的所有存储移动器

Get-AzStorageMover

Description                  : StorageMover description
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover1
Location                     : eastus
Name                         : myStorageMover1
ProvisioningState            : Succeeded
SystemDataCreatedAt          : 8/2/2022 5:35:00 AM
SystemDataCreatedBy          : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/2/2022 5:35:00 AM
SystemDataLastModifiedBy     : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataLastModifiedByType : Application
Tag                          : {
                                 "tag2": "value2",
                                 "tag1": "value1"
                               }
Type                         : microsoft.storagemover/storagemovers

Description                  : StorageMover description
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup2/providers/Microsoft.StorageMover/storageMovers/myStorageMover2
Location                     : eastus
Name                         : myStorageMover2
ProvisioningState            : Succeeded
SystemDataCreatedAt          : 8/2/2022 5:35:00 AM
SystemDataCreatedBy          : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/2/2022 5:35:00 AM
SystemDataLastModifiedBy     : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataLastModifiedByType : Application
Tag                          : {
                                 "tag2": "value2",
                                 "tag1": "value1"
                               }
Type                         : microsoft.storagemover/storagemovers

此命令获取订阅中的所有存储移动器。

示例 2:获取资源组中的所有存储移动器

Get-AzStorageMover -ResourceGroupName myResourceGroup

Description                  : StorageMover description
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover1
Location                     : eastus
Name                         : myStorageMover1
ProvisioningState            : Succeeded
SystemDataCreatedAt          : 8/2/2022 5:35:00 AM
SystemDataCreatedBy          : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/2/2022 5:35:00 AM
SystemDataLastModifiedBy     : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataLastModifiedByType : Application
Tag                          : {
                                 "tag2": "value2",
                                 "tag1": "value1"
                               }
Type                         : microsoft.storagemover/storagemovers

此命令获取资源组中的所有存储移动器。

示例 2:获取特定的存储移动器

Get-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover1

Description                  : StorageMover description
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover1
Location                     : eastus
Name                         : myStorageMover1
ProvisioningState            : Succeeded
SystemDataCreatedAt          : 8/2/2022 5:35:00 AM
SystemDataCreatedBy          : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/2/2022 5:35:00 AM
SystemDataLastModifiedBy     : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataLastModifiedByType : Application
Tag                          : {
                                 "tag2": "value2",
                                 "tag1": "value1"
                               }
Type                         : microsoft.storagemover/storagemovers

此命令获取特定的存储移动器。

参数

-DefaultProfile

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

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

-InputObject

要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。

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

-Name

存储移动器资源的名称。

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

-ResourceGroupName

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

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

-SubscriptionId

目标订阅的 ID。

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

输入

IStorageMoverIdentity

输出

IStorageMover