Skip to content

Files

Latest commit

12c283d · May 6, 2022

History

History
56 lines (41 loc) · 2.28 KB

howto-restart-server-powershell.md

File metadata and controls

56 lines (41 loc) · 2.28 KB
title description author ms.author ms.service ms.topic ms.date ms.custom
Restart Azure Database for MariaDB server - Azure PowerShell
Learn how you can restart an Azure Database for MariaDB server using PowerShell. The time required for a restart depends on the MariaDB recovery process.
savjani
pariks
mariadb
how-to
05/06/2022
devx-track-azurepowershell
kr2b-contr-experiment

Restart Azure Database for MariaDB server using PowerShell

This article describes how you can restart an Azure Database for MariaDB server. You may need to restart your server for maintenance reasons, which causes a short outage during the operation.

The server restart is blocked if the service is busy. For example, the service may be processing a previously requested operation such as scaling vCores.

The amount of time required to complete a restart depends on the MariaDB recovery process. To reduce the restart time, we recommend you minimize the amount of activity occurring on the server before the restart.

Prerequisites

To complete this how-to guide, you need:

Important

While the Az.MariaDb PowerShell module is in preview, you must install it separately from the Az PowerShell module using the following command: Install-Module -Name Az.MariaDb -AllowPrerelease. Once the Az.MariaDb PowerShell module is generally available, it becomes part of future Az PowerShell module releases and available natively from within Azure Cloud Shell.

If you choose to use PowerShell locally, connect to your Azure account using the Connect-AzAccount cmdlet.

[!INCLUDE cloud-shell-try-it.md]

Restart the server

Restart the server with the following command:

Restart-AzMariaDbServer -Name mydemoserver -ResourceGroupName myresourcegroup

Next steps

[!div class="nextstepaction"] Create an Azure Database for MariaDB server using PowerShell