Move-AzureStorageAccount

Migrates a storage account to the Azure Resource Manager stack.

Syntax

Move-AzureStorageAccount [-Validate] [-StorageAccountName] <String> [-Profile <AzureSMProfile>]
 [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
Move-AzureStorageAccount [-Abort] [-StorageAccountName] <String> [-Profile <AzureSMProfile>]
 [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
Move-AzureStorageAccount [-Commit] [-StorageAccountName] <String> [-Profile <AzureSMProfile>]
 [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
Move-AzureStorageAccount [-Prepare] [-StorageAccountName] <String> [-Profile <AzureSMProfile>]
 [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]

Description

The Move-AzureStorageAccount cmdlet migrates a storage account to a resource group in the Azure Resource Manager stack.

Examples

Example 1: Prepare storage account migration

PS C:\> Move-AzureStorageAccount -Prepare -StorageAccountName "ContosoStorageName"
This command prepares the storage account named ContosoStorageName for migration to the Azure Resource Manager stack.

Example 2: Start storage account migration

PS C:\> Move-AzureStorageAccount -Commit -StorageAccountName "ContosoStorageName"
This command starts migration of the storage account named ContosoStorageName to the Azure Resource Manager stack.

Example 3: Validate storage account migration

PS C:\> Move-AzureStorageAccount -Validate -StorageAccountName "ContosoStorageName"
This command validates migration for the storage account named ContosoStorageName to the Azure Resource Manager stack.

Parameters

-Validate

Specifies that this cmdlet validates the storage account for migration.

Type:SwitchParameter
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-StorageAccountName

Specifies the name of the storage account that this cmdlet migrates.

Type:String
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-Profile

Specifies the Azure profile from which this cmdlet reads.
If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InformationAction

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

- Continue
- Ignore
- Inquire
- SilentlyContinue
- Stop
- Suspend

Type:ActionPreference
Aliases:infa
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Abort

Indicates that this cmdlet cancels the storage account migration.

Type:SwitchParameter
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Commit

Indicates that this cmdlet starts the storage account migration.

Type:SwitchParameter
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Prepare

Indicates that this cmdlet prepares the storage account for migration.

Type:SwitchParameter
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False