Get-AzStorageAccountMigration
获取指定存储帐户正在进行的迁移状态。
语法
Get (默认值)
Get-AzStorageAccountMigration
-AccountName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzStorageAccountMigration
-InputObject <IStorageIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取指定存储帐户正在进行的迁移状态。
示例
示例 1:获取存储帐户迁移
Get-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresroucegroup
DetailMigrationFailedDetailedReason :
DetailMigrationFailedReason :
DetailMigrationStatus : SubmittedForConversion
DetailTargetSkuName : Standard_LRS
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresroucegroup/providers/Microsoft.Storage/storageAccounts/myaccount/accountMigrations/default
Name : default
ResourceGroupName : myresroucegroup
Type : Microsoft.Storage/storageAccounts/accountMigrations
此命令获取资源组 myresourcegroup 下的存储帐户 myaccount 的迁移状态。
参数
-AccountName
指定资源组中的存储帐户的名称。 存储帐户名称长度必须为 3 到 24 个字符,并且只能使用数字和小写字母。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Get
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
参数属性
| 类型: | PSObject |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | AzureRMContext, AzureCredential |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-InputObject
标识参数
参数属性
| 类型: | IStorageIdentity |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
GetViaIdentity
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ResourceGroupName
用户订阅中的资源组的名称。 此名称不区分大小写。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Get
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SubscriptionId
目标订阅的 ID。
参数属性
| 类型: | String[] |
| 默认值: | (Get-AzContext).Subscription.Id |
| 支持通配符: | False |
| 不显示: | False |
参数集
Get
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。