Move-AzureStorageAccount
Migrates a storage account to the Azure Resource Manager stack.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.
The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.
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
-Abort
Indicates that this cmdlet cancels the storage account migration.
Type: | SwitchParameter |
Position: | 0 |
Default value: | None |
Required: | True |
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 |
Required: | True |
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
Specifies an information variable.
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | True |
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 |
Required: | False |
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 |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Validate
Specifies that this cmdlet validates the storage account for migration.
Type: | SwitchParameter |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |