无法访问 Azure Service Fabric 集群端点
Azure Service Fabric Cluster end point is not accessible
我按照以下 url 在 Azure 门户中创建了一个 Service Fabric 集群。
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-via-portal
创建 Service fabric 集群后,我无法浏览 "Client connection endpoint" 或 "Service Fabric Explorer"。我的访问被拒绝 - HTTP 错误 403。
我还在我的机器上安装了在创建 Service fabric 集群时创建的默认证书。
当我尝试从 visual studio 发布时,出现以下错误
Connect-ServiceFabricCluster:无法绑定参数 'StoreLocation'。无法将值“”转换为类型
"System.Security.Cryptography.X509Certificates.StoreLocation"。错误:“无法处理标识符名称
因为它与以下枚举器名称过于相似或相同:CurrentUser、LocalMachine。使用更
具体标识符名称。”
在 C:\CODE\DotNetCode\SFSample\SFSample\Scripts\Deploy-FabricApplication.ps1:185 char:45
... [无效](Connect-ServiceFabricCluster @ClusterConnectionParameters)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo:InvalidArgument:(:) [Connect-ServiceFabricCluster]、ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.ServiceFabric.Powershell.ConnectCluster
警告:无法验证与 Service Fabric 群集的连接。
Test-ServiceFabricClusterConnection:集群连接实例为空
在您的 SF 项目中,您有一个名为 Cloud.xml
的发布配置文件
您应该在那里设置集群的配置,以告知证书的指纹及其存储位置。
类似于:
<?xml version="1.0" encoding="utf-8"?>
<PublishProfile xmlns="http://schemas.microsoft.com/2015/05/fabrictools">
<ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000"
X509Credential="true"
ServerCertThumbprint="0123456789012345678901234567890123456789"
FindType="FindByThumbprint"
FindValue="9876543210987654321098765432109876543210"
StoreLocation="CurrentUser"
StoreName="My" />
<ApplicationParameterFile Path="..\ApplicationParameters\Cloud.xml" />
<CopyPackageParameters CompressPackage="true" />
</PublishProfile>
您可能没有配置或配置不正确。
我按照以下 url 在 Azure 门户中创建了一个 Service Fabric 集群。 https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-via-portal
创建 Service fabric 集群后,我无法浏览 "Client connection endpoint" 或 "Service Fabric Explorer"。我的访问被拒绝 - HTTP 错误 403。
我还在我的机器上安装了在创建 Service fabric 集群时创建的默认证书。
当我尝试从 visual studio 发布时,出现以下错误
Connect-ServiceFabricCluster:无法绑定参数 'StoreLocation'。无法将值“”转换为类型 "System.Security.Cryptography.X509Certificates.StoreLocation"。错误:“无法处理标识符名称 因为它与以下枚举器名称过于相似或相同:CurrentUser、LocalMachine。使用更 具体标识符名称。” 在 C:\CODE\DotNetCode\SFSample\SFSample\Scripts\Deploy-FabricApplication.ps1:185 char:45 ... [无效](Connect-ServiceFabricCluster @ClusterConnectionParameters) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:InvalidArgument:(:) [Connect-ServiceFabricCluster]、ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.ServiceFabric.Powershell.ConnectCluster
警告:无法验证与 Service Fabric 群集的连接。 Test-ServiceFabricClusterConnection:集群连接实例为空
在您的 SF 项目中,您有一个名为 Cloud.xml
您应该在那里设置集群的配置,以告知证书的指纹及其存储位置。
类似于:
<?xml version="1.0" encoding="utf-8"?>
<PublishProfile xmlns="http://schemas.microsoft.com/2015/05/fabrictools">
<ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000"
X509Credential="true"
ServerCertThumbprint="0123456789012345678901234567890123456789"
FindType="FindByThumbprint"
FindValue="9876543210987654321098765432109876543210"
StoreLocation="CurrentUser"
StoreName="My" />
<ApplicationParameterFile Path="..\ApplicationParameters\Cloud.xml" />
<CopyPackageParameters CompressPackage="true" />
</PublishProfile>
您可能没有配置或配置不正确。