Remove-ServiceFabricApplicationPackage
从映像存储中删除 Service Fabric 应用程序包。
语法
Default (默认值)
Remove-ServiceFabricApplicationPackage
[-ApplicationPackagePathInImageStore] <String>
[[-ImageStoreConnectionString] <String>]
[-CertStoreLocation <StoreLocation>]
[-TimeoutSec <Int32>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
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 从此参数指定的路径中删除包。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-CertStoreLocation
{{填写 CertStoreLocation 描述}}
参数属性
| 类型: | StoreLocation |
| 默认值: | None |
| 接受的值: | CurrentUser, LocalMachine |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
| 类型: | SwitchParameter |
| 默认值: | False |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | cf |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ImageStoreConnectionString
指定 Service Fabric 映像存储的连接字符串。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 1 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TimeoutSec
指定操作的超时期限(以秒为单位)。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 不执行 cmdlet。
参数属性
| 类型: | SwitchParameter |
| 默认值: | False |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | 无线 |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。