azure-service-fabric

WCF Endpoints Exposing Multiple Contracts in Service Fabric

家住魔仙堡 提交于 2020-01-07 04:41:05
问题 I am able to customize the ServiceHost on a WcfCommunicationListener from this post that I submitted the other day. However, I'm now getting some very strange behavior from Service Fabric when hosting multiple WCF endpoints on a stateless service. I am assigning multiple listeners to the ServiceInstanceListner array: I am ensuring that they each have a unique name, as well as unique contracts, and custom endpoints and paths. When deployed to ServiceFabric they both show up as expected as

Limit the access to one application in Azure Service Fabric

北慕城南 提交于 2020-01-06 15:25:09
问题 I have one Service Fabric application deployed in one Azure Service Fabric cluster, which provide some REST API, and also a web app in Azure, acting as the consumer of the REST API. What I want to do is to deny any access to my SF application from anywhere except from my web app. I tried NSG to add the deny rule for source with the tag of Internet but failed. Seems the existence of the load balancer of SF cluster make the deny rule not working. Any suggestion? Thanks! 回答1: This works for me:

Invoke same method on all active instances of a stateless service

喜欢而已 提交于 2020-01-06 11:49:36
问题 What is the best way to invoke the same method on all active instances of a stateless service in SFC? I mean doing something similar to below, just on ALL active instances: var service = ServiceProxy.Create<IMyService>("<my-service-uri>"); await service.MyServiceMethod(); 回答1: Unfortunately looks like there is no way to send remoting request to the particular service instance / replica. According to the documentation of ServiceProxy.Create method there is a very limited control over target

Set up Azure Service Fabric cluster on managed disks

有些话、适合烂在心里 提交于 2020-01-05 05:39:08
问题 Does anybody know how to set up Service Fabric cluster with VMs on managed disks(both OS and Data)? I would be very interested to know how to do this using template config. 回答1: You need to change VMSS api version to 2016-04-30-preview and storageProfile to this: "storageProfile": { "imageReference": { "publisher": "[parameters('vmImagePublisher')]", "offer": "[parameters('vmImageOffer')]", "sku": "[parameters('vmImageSku')]", "version": "[parameters('vmImageVersion')]" }, "osDisk": {

Deployed node application not working on cluster service fabric

久未见 提交于 2020-01-05 05:36:08
问题 I have deployed an application on service fabric cluster and deployment is also successful and the node is also healthy. I am using Ubuntu 16 for deployment. I have used docker containerization as given in azure service fabric container document. My node app is running on port 3000 , so I have created docker file with same port number. When I am running my deployed app with port 3000 https://cluster.useast.______azure.com:3000 , it is not running. I have also make changes on

How to call a service fabric service from a Winform application?

允我心安 提交于 2020-01-05 04:19:15
问题 We have two Service Fabric stateless services. We have upgraded our service fabric runtime to the latest version and now want to use the latest V2(V2_1) runtime for communication. We have also upgraded the Service Fabric SDK to the latest version. MathService. It has two endpoints exposed to communication. EvilMathTeacherService. It calls those two endpoints to do some things. It also has an endpoint exposed. These two services can talk to each other using the latest V2(V2_1) runtime. We have

Key vault values from deployment, and linked templates parameters

荒凉一梦 提交于 2020-01-04 04:35:30
问题 I have a template to create a key vault and a secret within it. I also have a service fabric template, that requires 3 things from the key vault: the Vault URI, the certificate URL, and the certificate thumbprint. If I create the key vault and secret with powershell, it is easy to manually copy these 3 things from the output, and paste them into the parameters of the service fabric template. However, what I am hoping to do, due to the fact that this cert has the same life cycle as the service

HTTPS communication in ServiceFabric Local Cluster

自古美人都是妖i 提交于 2020-01-04 04:07:09
问题 Here's my setup an IdentityServer 4 as a stateless reliable ASP.NET Core service. a WebAPI as a reliable ASP.NET Core service. using them with a JS client, it is now working with HTTP. The problem is with HTTPS. The WebAPI needs to request the openID config via htttps [is4URL].well-known/openid-configuration. I'm getting this error System.InvalidOperationException: IDX10803: Unable to obtain configuration from: 'https://localhost:9999/.well-known/openid-configuration'. ---> System.IO

Access Azure Service Fabric stateful service state

拜拜、爱过 提交于 2020-01-04 02:09:07
问题 I have added WebAPI to my stateful serive and want to access StateManager from it (from outside of StatefulService class implementation). What is the best way to do it? Currently I am using a small class for this: internal static class InstanceAccessor { internal static StatefulService ActiveInstance { get; set; } } And put the value inside RunAsync method of the StatefulService : protected override async Task RunAsync(CancellationToken cancellationToken) { InstanceAccessor.ActiveInstance =

Swagger for Azure Service Fabric Stateless Web API application

倾然丶 夕夏残阳落幕 提交于 2020-01-04 01:51:32
问题 I am developing Web API service and hosting on Azure Service Fabric as Micro Service. I need to implement Swagger for the API definition and I could see SwaggerConfig.Register() method not calling while application is starting. So I could not access http://faricurl:8000/swagger. So can you please point out how to integrate Swagger definition for Web API application. Many Thanks, Thirumalai M 回答1: As suggested in my comment install the core Swashbuckle NuGet package install-package Swashbuckle