Skip to content

Commit acf4130

Browse files
authored
Merge pull request #205760 from tamram/patch-32
Update storage-initiate-account-failover.md
2 parents cea7202 + 60582a0 commit acf4130

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

articles/storage/common/storage-initiate-account-failover.md

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: jimmart-dev
77

88
ms.service: storage
99
ms.topic: how-to
10-
ms.date: 05/07/2021
10+
ms.date: 07/22/2022
1111
ms.author: jammart
1212
ms.subservice: common
1313
ms.custom: devx-track-azurepowershell
@@ -60,42 +60,17 @@ To initiate an account failover from the Azure portal, follow these steps:
6060

6161
## [PowerShell](#tab/azure-powershell)
6262

63-
The account failover feature is generally available, but still relies on a preview module for PowerShell. To use PowerShell to initiate an account failover, you must first install the Az.Storage [1.1.1-preview](https://www.powershellgallery.com/packages/Az.Storage/1.1.1-preview) module. Follow these steps to install the module:
63+
To use PowerShell to initiate an account failover, install the [Az.Storage](https://www.powershellgallery.com/packages/Az.Storage) module, version 2.0.0 or later. For more information about installing Azure PowerShell, see [Install the Azure Az PowerShell module](/powershell/azure/install-az-ps).
6464

65-
1. Uninstall any previous installations of Azure PowerShell:
66-
67-
- Remove any previous installations of Azure PowerShell from Windows using the **Apps & features** setting under **Settings**.
68-
- Remove all **Azure** modules from `%Program Files%\WindowsPowerShell\Modules`.
69-
70-
1. Make sure that you have the latest version of PowerShellGet installed. Open a Windows PowerShell window, and run the following command to install the latest version:
71-
72-
```powershell
73-
Install-Module PowerShellGet –Repository PSGallery –Force
74-
```
75-
76-
1. Close and reopen the PowerShell window after installing PowerShellGet.
77-
78-
1. Install the latest version of Azure PowerShell:
79-
80-
```powershell
81-
Install-Module Az –Repository PSGallery –AllowClobber
82-
```
83-
84-
1. Install an Azure Storage preview module that supports account failover:
85-
86-
```powershell
87-
Install-Module Az.Storage –Repository PSGallery -RequiredVersion 1.1.1-preview –AllowPrerelease –AllowClobber –Force
88-
```
89-
90-
To initiate an account failover from PowerShell, execute the following command:
65+
To initiate an account failover from PowerShell, call the following command:
9166

9267
```powershell
9368
Invoke-AzStorageAccountFailover -ResourceGroupName <resource-group-name> -Name <account-name>
9469
```
9570

9671
## [Azure CLI](#tab/azure-cli)
9772

98-
To use Azure CLI to initiate an account failover, execute the following commands:
73+
To use Azure CLI to initiate an account failover, call the following commands:
9974

10075
```azurecli-interactive
10176
az storage account show \ --name accountName \ --expand geoReplicationStats

0 commit comments

Comments
 (0)