Move-​Azure​Storage​Account

Migrates a storage account to the Azure Resource Manager stack.

Syntax

Move-AzureStorageAccount
    [-Abort]
    [-StorageAccountName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureStorageAccount
    [-Commit]
    [-StorageAccountName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureStorageAccount
    [-Prepare]
    [-StorageAccountName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureStorageAccount
    [-Validate]
    [-StorageAccountName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<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.

Required Parameters

-Abort

Indicates that this cmdlet cancels the storage account migration.

Type:SwitchParameter
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
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
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
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Validate

Specifies that this cmdlet validates the storage account for migration.

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

Optional Parameters

-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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False