你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzStorageMoverProject
获取项目资源。
语法
Get-AzStorageMoverProject
-ResourceGroupName <String>
-StorageMoverName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStorageMoverProject
-Name <String>
-ResourceGroupName <String>
-StorageMoverName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStorageMoverProject
-InputObject <IStorageMoverIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取项目资源。
示例
示例 1:获取存储移动器下的所有项目
$projectList = Get-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover
Description : My first project
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/projects/myProject1
Name : myProject1
ProvisioningState : Succeeded
SystemDataCreatedAt : 8/2/2022 5:23:49 AM
SystemDataCreatedBy : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 8/2/2022 5:23:49 AM
SystemDataLastModifiedBy : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataLastModifiedByType : Application
Type : microsoft.storagemover/storagemovers/projects
Description : My second project
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/projects/myProject2
Name : myProject2
ProvisioningState : Succeeded
SystemDataCreatedAt : 8/2/2022 5:35:48 AM
SystemDataCreatedBy : bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 8/2/2022 5:35:48 AM
SystemDataLastModifiedBy : bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb
SystemDataLastModifiedByType : Application
Type : microsoft.storagemover/storagemovers/projects
此命令获取存储移动器下的所有项目。
示例 2:获取特定项目
$projectList = Get-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject1
Description : My first project
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/projects/myProject1
Name : myProject1
ProvisioningState : Succeeded
SystemDataCreatedAt : 8/2/2022 5:23:49 AM
SystemDataCreatedBy : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 8/2/2022 5:23:49 AM
SystemDataLastModifiedBy : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
SystemDataLastModifiedByType : Application
Type : microsoft.storagemover/storagemovers/projects
此命令获取存储移动器下的特定项目。
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | IStorageMoverIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
Project 资源的名称。
类型: | String |
别名: | ProjectName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 此名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-StorageMoverName
存储移动器资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |