Stop-AzDeployment

In this Azure PowerShell article, we will discuss the syntax and usage of the Stop-AzDeployment Azure PowerShell cmdlet with an example.

Stop-AzDeployment

Well, what if you wish to stop or cancel a running deployment using PowerShell? Here is the Stop-AzDeployment PowerShell command that can easily help to do this requirement.

Syntax

Below is the syntax of the Stop-AzDeployment PowerShell command.

Stop-AzDeployment
  [-Name] <String>
Stop-AzDeployment
 -Id <String>

Example:

The below PowerShell command will immediately stop the TsInfoAppDeployment which is running.

Stop-AzDeployment -Name "TsInfoAppDeployment"

You may also like following the below articles

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Stop-AzDeployment PowerShell command with an example of how to use the Stop-AzDeployment PowerShell command. Thanks for reading this article !!!