
In this Azure tutorial, we will discuss How Do I Restart Azure. Along with this, we will also discuss the below topics.
- How To Restart Azure SQL Server
- How To Restart VM Instance in Azure
- How to restart Azure VM
- Restart Azure VM PowerShell
- How to Restart Azure Application Gateway
- How To Reset Azure SQL Server Password
- How To Change Password for Azure Database
- Why did my Azure VM restart
- Azure VM Restart VS Stop
- Restart-AzVM
- Azure Portal
Table of Contents
- How Do I Restart Azure
- How To Restart Azure SQL Server
- How To Restart VM Instance in Azure
- Restart Azure VM PowerShell
- How to Restart Azure Application Gateway
- Why did my Azure VM restart?
- Azure VM Restart Automatically
- How To Reset Azure SQL Server Password
- How To Change Password for Azure Database
- Azure VM Restart VS Stop
- Restart-AzVM
- Azure Portal
How Do I Restart Azure
Some times, if there will be an issue with the server or you are not getting your data properly or due to some maintenance activities you are facing some issues in your site. You have verified everything is fine and you are still not sure what is happening. As we know restart is the primary solution.
You can try restarting your site in Azure and that might help you to fix your issue.
You can follow the below steps to restart your site in Azure Portal.
Step-1: Login to Azure Portal (https://portal.azure.com/)
Step-2: Navigate to your site you want to restart in Azure Portal. You can find it on the DashBoard or Once you login to Azure Portal you can find in the Recent resources section Or if you are not getting there, you can search for the App Services, and then you will find your website listed there.
Step-3: Click on the Restart button that appears at the top.

Step-4: Click on the Yes button to confirm the Restart option. Wait for few minutes for the restart.

Step-5: Now you can see it successfully restarted the site.

This is how you can restart your site in case of any issues using the Azure Portal.
This is all about How Do I Restart Azure.
How To Restart Azure SQL Server
Above we discussed How Do I Restart Azure. Well, here we will discuss how you can restart an Azure Database for MySQL server. Sometimes you might need to restart your server for a maintenance perspective.
Step-1: Login to Azure Portal(https://portal.azure.com/)
Step-2: Navigate to your Azure Database for MySQL server. Click on that.
Step-3: Now on the next step, On the server’s Overview page, click on the Restart button from the top.

Step-4: Now click on the Yes button on the Restart Server Pop up to confirm the restart operation.

Step-5: Now you can see the MYSQL server database has been restarted Successfully.

How To Restart VM Instance in Azure
Sometimes, if you are facing any issue with your Virtual Machine and You want to restart your virtual machine once. As we all know this, Restarting the virtual machine can fix some of the minor issues if you are facing. This is what the primary solution we use to follow.
Step-1: Login to Azure Portal(https://portal.azure.com/)
Step-2: Once you logged in to the Azure Portal, search for Virtual machines there.

Step- 3: You will see the list of Virtual Machines created in your Azure subscription. It will show the VM name, Status, ResourceGroup, Location, etc.

Step-4: You can either select this VM from here from this window or You can click on the Virtual Machine name and then click on the Restart button from the top as highlighted below.

Step-5: Then the next step is to click on the Yes button from the next Pop Up for the confirmation on the restart option. Now wait for few minutes, it will restart the Virtual Machine successfully, then you can connect the virtual machine as usual and do your day to day activities.
This is how you can restart your virtual machine with few simple clicks using the Microsoft Azure Portal.
Restart Azure VM PowerShell
We saw above, How To Restart VM Instance in Azure using the Azure Portal. Now let’s see How to Restart Azure VM PowerShell. Follow the below steps to restart the Azure Virtual Machine using PowerShell.
Step-1: Open the PowerShell ISE as Run as administrator mode

Step-2: Use the Restart-AzureRmVM cmdlet to restarts the Azure virtual machine.
PS C:\WINDOWS\system32> Restart-AzureRmVM -ResourceGroupName "Your Resource Group Name" -Name "Your Virtual Machine Name"
For Example:
PS C:\WINDOWS\system32> Restart-AzureRmVM -ResourceGroupName "newresgroup" -Name "MyNewVM"

This is how to Restart Azure VM PowerShell.
How to Restart Azure Application Gateway
Well, let’s discuss How to Restart Azure Application Gateway using PowerShell and Azure CLI. Follow the below steps to restart the Azure application gateway
Step-1: Open the PowerShell ISE as Run as administrator mode

Step-2: You can run the below PowerShell cmdlet to start the Azure Application Gateway.
PS C:\WINDOWS\system32> Start-AzureRmApplicationGateway

same way, you can also stop the Azure Application Gateway using the below PowerShell cmdlet.
PS C:\WINDOWS\system32> Stop-AzureRmApplicationGateway

You can also Restart Azure Application Gateway using Azure CLI.
Use the below Azure CLI script to restart the Azure Application Gateway
First you can use the below Azure CLI script to stop the Azure Application Gateway
az network application-gateway stop -g newresgroup -n DemoAppGateway
Then you can start the Azure Application Gateway using the below Azure CLI script.
az network application-gateway start -g newresgroup -n DemoAppGateway
This is How to Restart Azure Application Gateway using PowerShell and Azure CLI.
Why did my Azure VM restart?
Sometimes, you might have seen that while using the Virtual Machine gets automatically restarted all of sudden. We don’t understand what is the reason for restart exactly.
Azure VM Restart Automatically
Here is some glance at the reason that might cause the restart of the Virtual Machine.
Planned Maintenance Activities From Microsoft
Microsoft uses to plan some maintenance activities for the Azure Virtual Machines periodically to improve the performance, reliability. security of the infrastructure where the VM exists, etc.
For some of the updates, the Virtual Machine needs to be restarted so in that case your VM might get restarted like changing the password of the Administrative account, setting up a Static IP address of the virtual machine, and resize operations of the virtual machines, etc.
Multiple actions by the User
Users might have initiated some actions that might need a restart of the virtual machine VM resize operations, changing the password of the administrative account, and setting a static IP address.
Updates from Azure Security Center
Azure Security Center continuously monitors the updates for the Virtual machines. It checks if any updates are missing for the operating systems of the Azure Virtual Machine.
Azure Security Center installs those missing updates for the Operating systems that might need the restart for your virtual machine.
Security Violations
Your Virtual Machine might get restarted due to the Security violations by the user or in case of the expiration of the payment method.
Virtual Machine Crash Issue
Sometimes, there might be a chance that the virtual machine is not able to handle the load and due to that, it might throw some exception. In that case, the VM might get restarted.
Faults with the Host Server
As we all know that all the virtual machines are running on physical servers. In case of any hardware failure like a failure for the hardware or Disk failure, etc can cause to restart your Virtual Machine.
These operations sometimes need to stop the Azure virtual machine then again to restart the virtual machine.
Unplanned maintenance from the Azure Team
In very rare cases, the Azure team might find some issues with your Azure environment and that needs to be fixed immediately. That might create some other major problems, if not fixed immediately then in that case they might have to update some patches or updates which might restart your Virtual Machine.
These are some of the reasons that might be the cause to restart the virtual machine.
How To Reset Azure SQL Server Password
Follow the below steps to Reset Azure SQL Server Password using the Azure Portal.
Step-1: Login to Azure Portal (https://portal.azure.com/)
Step-2: Navigate to your Azure SQL Server blade. Click on that.
Step-3: On the Overview tab, click on the Reset password on the top.

Step-4: On the Reset admin password window, enter the password and confirm password option and then click on the Save button to save the changes.

This is How To Reset Azure SQL Server Password using the Microsoft Azure Portal.
How To Change Password for Azure Database
Here, we will discuss how to change the password for the Azure Database for the MySQL server. Follow the below steps to change the password using the Azure Portal.
Step-1: Login to Azure Portal(https://portal.azure.com/)
Step-2: Navigate to your Azure Database for MySQL server. Click on that.
Step-3: Now on the next step, On the server’s Overview page, click on the Reset password button from the top.

Step-4: On the Reset the password window, enter the password and confirm password option and then click on the Save button to save the changes.

This is How To Change Password for Azure Database.
Azure VM Restart VS Stop
You can restart your Azure Virtual machine using few simple steps. Sometimes it fixes lots of minor issues once you restart your virtual machine and works a little faster also. But in certain scenarios, you might notice that while working in your virtual machine, it restarts automatically.
The reasons of the VM restart could be the below
- Planned Maintenance Activities From Microsoft.
- Multiple actions by the User
- Updates from Azure Security Center
- Security Violations
- Virtual Machine Crash Issue
- Faults with the Host Server
- Unplanned maintenance from the Azure Team
For more information, you can refer to the above section.
If you want to restart the virtual machine by yourself manually, you can follow the below steps
- Log in to the Azure Portal (https://portal.azure.com/)
- Search for the Virtual machines and then click on the search result Virtual machines.
- You can able to see the list of virtual machines that you have created already. Click on the specific virtual machine that you want to restart.
- On the Virtual Machine page, click on the Overview tab, you can click on the Restart button which is present next to the start button as highlighted below to restart the virtual machine.

This is all about the restart option for the Azure Virtual Machine.
Whereas, If you are not using your virtual machine time being, you can just stop your Azure Virtual machine and the important thing is you can save the bill also.
You can stop the Azure Virtual machine using few easy steps. An important point to note down here is, when you are stopping the Azure virtual machine it is not just shutting down the operating system, But it actually deallocates all the compute resources allocated to the virtual machine as well.
So you will not charge for the compute resources that your VM is using. Once you will stop the Azure Virtual machine, the status of your Virtual Machine will be “Stopped (Deallocated)” state.

Restart-AzVM
You can use the Restart-AzVM Azure PowerShell cmdlet to restart the Azure virtual machine.
Syntax:
Restart-AzVM
[-ResourceGroupName] <String>
[-Name] <String>
[-AsJob]
[-NoWait]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Example:
Let’s see an example of restarting a Azure Virtual machine using the Restart-AzVM Azure PowerShell cmdlet.
Restart-AzVM -ResourceGroupName "DemoRSGGRP" -Name "TsInfoVM"
Here, the name of the Resource Group is DemoRSGGRP and the name of the virtual machine is TsInfoVM. Once you will execute the Azure PowerShell cmdlet, it will take few seconds to restart the Azure Virtual machine named TsInfoVM.
Azure Portal
Azure Portal is a single portal that provides you the opportunity to access and manage all your applications in one place. You can able to build, manage, and monitor your simple web-applications to complex cloud applications using this portal.
Find out some more information on An introduction to Microsoft Azure Portal now.
You may like following Azure tutorials:
- Microsoft Azure Backup Agent
- You are not eligible for an Azure subscription
- How To Create Azure Functions In Visual Studio
- Create Azure Function using Visual Studio Code and PowerShell
- CS1061 C# ‘HttpRequest’ does not contain a definition for ‘Content’ and no accessible extension method ‘Content’ accepting a first argument of type ‘HttpRequest’ could be found
Conclusion
Well, in this tutorial, we discussed How Do I Restart Azure, How To Restart Azure SQL Server, How To Restart VM Instance in Azure, how to restart Azure VM, Restart Azure VM PowerShell, How to Restart Azure Application Gateway, Why did my Azure VM restart? and We also discussed How To Reset Azure SQL Server Password, How To Change Password for Azure Database, Azure VM Restart VS Stop, Restart-AzVM, Azure Portal.