Undo-​AC​SStorage​Account​Deletion

Undeletes a tenant storage account.

Syntax

Undo-ACSStorageAccountDeletion
    [[-SubscriptionId] <String>]
    [[-Token] <String>]
    [[-AdminUri] <Uri>]
    [-ResourceGroupName] <String>
    [-FarmName] <String>
    [-AccountId] <String>
    [[-NewAccountName] <String>]
    [[-StorageAccountApiVersion] <String>]
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-ResourceAdminApiVersion <String>]
    [-SkipCertificateValidation]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Description

The Undo-ACSStorageAccountDeletion cmdlet undeletes a tenant storage account. The service administrator can use this cmdlet to recover a storage account deleted by a tenant administrator.

Examples

Example 1: Recover a storage account

PS C:\> $ResourceGroup = "System" 

PS C:\> $Farm = Get-ACSFarm -ResourceGroupName $ResourceGroup

PS C:\> Undo-ACSStorageAccountDeletion -ResourceGroupName $ResourceGroup -FarmName $Farm.Name -AccountId <AccountId>

The first command stores the value named System in the variable named $ResourceGroup.

The second command uses the Get-ACSFarm cmdlet to get the farm that is contained in the resource group specified in the $ResourceGroup variable. The command stores the result in the variable named $Farm.

The third command uses the Undo-ACSStorageAccountDeletion cmdlet to restore the storage account for the specified in the AccountID parameter.

Required Parameters

-AccountId

Specifies the account ID in which this cmdlet recovers the storage account.

Type:String
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-FarmName

Specifies the name of the Azure Consistent Storage (ACS) farm.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that contains the ACS farm.

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

Optional Parameters

-AdminUri

Specifies the link, as a URI, to the service administrator.

Type:Uri
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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
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
-NewAccountName

Specifies the new account name of the storage account.

Type:String
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceAdminApiVersion

API version of Resource.Admin.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageAccountApiVersion

Specifies the API version of the storage account for which this cmdlet recovers.

Type:String
Position:7
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId

Specifies the subscription ID.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Token
Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.FarmResponse

Inputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.StorageAccountResponse