Undo-​AC​SStorage​Account​Deletion

Undelete 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

Service admin can use the cmdlet to recover a a storage account deleted by tenant admin.

Examples

Example 1:

@{paragraph=PS C:\>}



$resourceGroup = 'System' 

$farm = Get-ACSFarm -ResourceGroupName $resourceGroup

Undo-ACSStorageAccountDeletion -ResourceGroupName $resourceGroup -FarmName $farm.Name -AccountId <AccountId>

Required Parameters

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

Optional Parameters

-AdminUri
Type:Uri
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm
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
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
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageAccountApiVersion
Type:String
Position:7
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId
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
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