Skip to content

Commit 2b6ab09

Browse files
Merge pull request #239171 from tomvcassidy/deleteApplicationCommandFix
Changed Remove-AzResource to Remove-AzServiceFabricApplication
2 parents ef62cab + 82761df commit 2b6ab09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/service-fabric/how-to-managed-cluster-app-deployment-template.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ author: tomvcassidy
77
ms.service: service-fabric
88
ms.custom: devx-track-arm-template
99
services: service-fabric
10-
ms.date: 07/11/2022
10+
ms.date: 05/24/2023
1111
---
12+
1213
# Manage application lifecycle on a managed cluster using Azure Resource Manager
1314

1415
You have multiple options for deploying Azure Service Fabric applications on your Service Fabric managed cluster. We recommend using Azure Resource Manager. If you use Resource Manager, you can describe applications and services in JSON, and then deploy them in the same Resource Manager template as your cluster. Unlike using PowerShell or Azure CLI to deploy and manage applications, if you use Resource Manager, you don't have to wait for the cluster to be ready; application registration, provisioning, and deployment can all happen in one step. Using Resource Manager is the best way to manage the application life cycle in your cluster. For more information, see [Best practices: Infrastructure as code](service-fabric-best-practices-infrastructure-as-code.md#service-fabric-resources).
@@ -173,10 +174,10 @@ To delete a service fabric application that was deployed by using the applicatio
173174
Get-AzResource -Name <String> | f1
174175
```
175176

176-
1. Use the [Remove-AzResource](/powershell/module/az.resources/remove-azresource) cmdlet to delete the application resources:
177+
1. Use the [Remove-AzServiceFabricApplication](/powershell/module/az.servicefabric/remove-azservicefabricapplication) cmdlet to delete the application resources:
177178

178179
```powershell
179-
Remove-AzResource -ResourceId <String> [-Force] [-ApiVersion <String>]
180+
Remove-AzServiceFabricApplication -ResourceId <String> [-Force]
180181
```
181182

182183

0 commit comments

Comments
 (0)