Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Remove-ServiceFabricApplicationPackage

Removes a Service Fabric application package from the image store.

Syntax

Default (Default)

Remove-ServiceFabricApplicationPackage
 [-ApplicationPackagePathInImageStore] <String>
 [[-ImageStoreConnectionString] <String>]
 [-CertStoreLocation <StoreLocation>]
 [-TimeoutSec <Int32>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

The Remove-ServiceFabricApplicationPackage cmdlet removes a Service Fabric application package from the image store. Run this cmdlet after you register the application package by using the Register-ServiceFabricApplicationPackage cmdlet.

To manage Service Fabric clusters, start Windows PowerShell by using the Run as administrator option.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Remove an application package

PS C:\> Remove-ServiceFabricApplicationPackage -ImageStoreConnectionString "xstore:DefaultEndpointsProtocol=https;AccountName=[StorageAccountName];AccountKey=[StorageAccountKey];Container=[ContainerName]" -ApplicationPackagePathInImageStore "PersistentToDoListService_v2"

This command removes the application package that has the specified image store path. The cmdlet does prompt you for confirmation before it removes the application package unless you use the parameter "-Confirm".

Parameters

-ApplicationPackagePathInImageStore

Specifies the relative path in the image store. The cmdlet removes the package from the path that this parameter specifies.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-CertStoreLocation

{{Fill CertStoreLocation Description}}

Parameter properties

Type:StoreLocation
Default value:None
Accepted values:CurrentUser, LocalMachine
Supports wildcards:False
DontShow:False

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-ImageStoreConnectionString

Specifies the connection string for the Service Fabric image store.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not executed.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object

Related Links