Skip to content

Commit d63454a

Browse files
author
Maddie Clayton
authored
Merge pull request #6264 from Azure/stop-rg-deploy-update
Add example to Stop-AzureRmResourceGroupDeployment.md
2 parents feb4738 + bcdb236 commit d63454a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/ResourceManager/Resources/Commands.Resources/help/Stop-AzureRmResourceGroupDeployment.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll-Help.xml
33
Module Name: AzureRM.Resources
44
ms.assetid: 089954C3-7F3E-46C2-AA93-C0151EACDA2F
@@ -42,6 +42,25 @@ If the cmdlet finds more than one running deployment, the command fails.
4242

4343
## EXAMPLES
4444

45+
### Example 1: Starting and stopping a resource group deployment
46+
47+
```powershell
48+
PS C:\> New-AzureRmResourceGroupDeployment -Name mynewstorageaccount -ResourceGroupName myrg -TemplateFile .\storage-account-create-azuredeploy.json -TemplateParameterFile .\storage-account-create-azuredeploy.parameters.json -AsJob
49+
50+
Id Name PSJobTypeName State HasMoreData Location Command
51+
-- ---- ------------- ----- ----------- -------- -------
52+
1 Long Running... AzureLongRun... Running True localhost New-AzureRmResourceGro...
53+
54+
PS C:\> Stop-AzureRmResourceGroupDeployment -Name mynewstorageaccount -ResourceGroupName myrg
55+
True
56+
57+
PS C:\> Get-Job 1
58+
59+
Id Name PSJobTypeName State HasMoreData Location Command
60+
-- ---- ------------- ----- ----------- -------- -------
61+
1 Long Running... AzureLongRun... Failed True localhost New-AzureRmResourceGro...
62+
```
63+
4564
## PARAMETERS
4665

4766
### -ApiVersion

0 commit comments

Comments
 (0)