将 Service Fabric 应用程序从 Team Services 部署到 Azure
Deploying a Service fabric app from Team Services to Azure
我需要一些帮助来将 Service fabric 应用程序从 Team Services 部署到 Azure。
我从团队服务中的代理收到以下错误(见下面的屏幕截图):
2018-06-22T13:17:13.3007613Z ##[error] An error occurred attempting to
import the certificate. Ensure that your service endpoint is
configured properly with a correct certificate value and, if the
certificate is password-protected, a valid password.
Error message: Exception calling "Import" with "3" argument(s):
"Cannot find the requested object.
请指教
这是我的 Service Fabric Security 安全页面,不记得我在哪里设置了 VSTS 端所需的密码,但我记下了它并相信它是正确的。
这是 VSTS 端的端点页面:
检查 VSTS 中的服务端点:
- 它是否具有正确的 base64 编码证书和私钥。
- 此外,请检查提供的密码是否正确。
- 此外,检查服务端点是否配置为
tcp://mycluster.region.cloudapp.azure.com:19000
。
- 检查指纹是否正确。
问题已在 MS 支持的帮助下解决,方法是在 Key Vault 中创建新证书并将其添加到 Service Fabric,步骤:
Azure 门户:
- 主页 > 密钥保管库 > YourKeyVault - 证书:Generate/Import
使用您选择的 CertificateName 和 CN=CertificateName 作为主题生成新密钥。
- 主页 > 密钥保管库 > YourKeyVault - 证书 > CertificateName
Select 唯一可用的版本并以 PFX/PEM 格式下载。
- Power Shell: 转换成Base64字符串,CertificateBase64
[System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("c:\YourCertificate.pfx"))
- 主页 > YourServicefabric - 安全性:添加
通过提供 的指纹将您创建的证书添加为管理客户端。
VSTS/TFS:
- 构建并发布 > 您的管道:编辑
在 Deployment Process Service Fabric Environment 中单击 Manage for Cluster Connection 并添加一个新连接。除了其他信息,在客户端证书中粘贴之前的 CertificateBase64.
我需要一些帮助来将 Service fabric 应用程序从 Team Services 部署到 Azure。
我从团队服务中的代理收到以下错误(见下面的屏幕截图):
2018-06-22T13:17:13.3007613Z ##[error] An error occurred attempting to import the certificate. Ensure that your service endpoint is configured properly with a correct certificate value and, if the certificate is password-protected, a valid password.
Error message: Exception calling "Import" with "3" argument(s): "Cannot find the requested object.
请指教
这是我的 Service Fabric Security 安全页面,不记得我在哪里设置了 VSTS 端所需的密码,但我记下了它并相信它是正确的。
这是 VSTS 端的端点页面:
检查 VSTS 中的服务端点:
- 它是否具有正确的 base64 编码证书和私钥。
- 此外,请检查提供的密码是否正确。
- 此外,检查服务端点是否配置为
tcp://mycluster.region.cloudapp.azure.com:19000
。 - 检查指纹是否正确。
问题已在 MS 支持的帮助下解决,方法是在 Key Vault 中创建新证书并将其添加到 Service Fabric,步骤:
Azure 门户:
- 主页 > 密钥保管库 > YourKeyVault - 证书:Generate/Import 使用您选择的 CertificateName 和 CN=CertificateName 作为主题生成新密钥。
- 主页 > 密钥保管库 > YourKeyVault - 证书 > CertificateName Select 唯一可用的版本并以 PFX/PEM 格式下载。
- Power Shell: 转换成Base64字符串,CertificateBase64 [System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("c:\YourCertificate.pfx"))
- 主页 > YourServicefabric - 安全性:添加 通过提供 的指纹将您创建的证书添加为管理客户端。
VSTS/TFS:
- 构建并发布 > 您的管道:编辑 在 Deployment Process Service Fabric Environment 中单击 Manage for Cluster Connection 并添加一个新连接。除了其他信息,在客户端证书中粘贴之前的 CertificateBase64.