Remove-ServiceFabricApplicationPackage

從映像存放區移除 Service Fabric 應用程式封裝。

Syntax

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

Description

Remove-ServiceFabricApplicationPackage Cmdlet 會從映射存放區中移除 Service Fabric 應用程式套件。 使用 Register-ServiceFabricApplicationPackage Cmdlet 註冊應用程式套件之後,請執行此 Cmdlet。

若要管理 Service Fabric 叢集,請使用 [以系統管理員身分執行] 選項啟動Windows PowerShell。

在 Service Fabric 叢集上執行任何作業之前,請使用 Connect-ServiceFabricCluster Cmdlet 建立叢集的連線。

範例

範例 1:移除應用程式套件

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

此命令會移除具有指定映射存放區路徑的應用程式套件。 除非您使用 「-Confirm」 參數,否則 Cmdlet 會在移除應用程式套件之前提示您確認。

參數

-ApplicationPackagePathInImageStore

指定映射存放區中的相對路徑。 Cmdlet 會從此參數指定的路徑中移除封裝。

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-CertStoreLocation

{{Fill CertStoreLocation Description}}

Type:StoreLocation
Accepted values:CurrentUser, LocalMachine
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

在執行 Cmdlet 前提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ImageStoreConnectionString

指定 Service Fabric 映射存放區的連接字串。

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TimeoutSec

指定作業的逾時期間,以秒為單位。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

None

輸出

System.Object