Questions tagged [azure-service-fabric-mesh]

1

votes
2

answer
45

Views

Run Web app separately from Service Fabric

I have Service Fabric and web service in it. If I run the Service Fabric locally, from Visual Studio, I can debug my service, and it is very convenient. However, it takes a lot of time to deploy my code changes to local fabric. I am sure there should be an option to start my service separately from...
PolinaC
0

votes
0

answer
2

Views

Debugging a service fabric applications against a remote in-premises cluster by VS 2019

The development machine does not have enough capacity to host and run the Service Fabric cluster on the same machine where VS 2019 installed. So, a possible workaround would be having the cluster created on the local network (not Azure) and debug it remotely. Is it a feasible scenario, and if so how...
Arash
1

votes
2

answer
46

Views

Service Fabric Debugging

When I try to run SF service from VS in debug mode I get the following: An attempt was made to upgrade the application but the application's version has not been changed. Be sure to update the version in the application manifest prior to upgrading. Where I have to manually delete this service in SF...
ShaneKm
1

votes
2

answer
73

Views

Why is the partitioning strategy for a service fabric service tied to the partition instead of to the service?

I am just getting started writing some dynamic endpoint discovery for my Service Fabric application and was looking for examples as to how to resolve service endpoints. I found the following code example on stackoverflow: https://stackoverflow.com/a/38562986/4787510 I did some minor variations to th...
Sossenbinder
3

votes
1

answer
73

Views

Service fabric hosted Asp.net WebApi Container application : 403 - Forbidden : Access is denied. on local cluster

I'm trying to do a lift and shift of a Asp.net MVC application . I've containarized my Asp.Net WebApi application and deployed it AzureContainerRegistry and i'm referencing the container in a service fabric application. My ServiceManifest looks like this bookingacr.azurecr.io/bookingapi And the App...
Arshad Badar Khan
1

votes
0

answer
49

Views

Is it possible to control Service Fabric hosted service restart behaviour?

I can't find much documentation on the action that Service Fabric takes when a service it is hosting fails. I have performed some experimentation (using a stateless service in a local cluster), the results of which are below. My question is: is it possible to change this behaviour? There are two d...
jamesmus
1

votes
0

answer
32

Views

Azure Stateless Service Fabric

I am new to Azure Service Fabric ( stateless ). I am trying to moq of this code var userClaims = User.Identity as System.Security.Claims.ClaimsIdentity; but, am unable to do. Can you please help me on this.
1

votes
0

answer
72

Views

Can i Implement a Cache in Azure Statless fabric service

I chosen stateless service fabric. I need to put AzureToken in a cache, But not able to get Httpcontext.Current.Session object directly. Any otherway to implement a cache in stateless service fabric. if it so, that cache is also available in across all the nodes? . Thanks Advance.
1

votes
1

answer
367

Views

Cannot connect to service fabric secure cluster

I created new secure service fabric cluster on azure with cluster and admin client certificates in keyvault on azure. I installed the admin client certificate for current user and local machine stores but whenever I try to connect that cluster or explore it in browser its gave access denied error. I...
nama neemi
1

votes
1

answer
54

Views

How do I add an on-premis Service Fabric cluster to Visual Studio 2017 Cloud Explorer

We are considering using stand-alone Service Fabric (not in Azure). I have a non-development cluster running for Test, but my application that works in my local box is returning 500 errors in the non-dev cluster. However, I don't see any way to add the Test cluster to Cloud Explorer. It only knows o...
Buddha Buddy
1

votes
0

answer
195

Views

Access container / DI in Program.cs Azure Service Fabric

Using the default, .Net Core DI container, is it possible to inject dependencies into a stateless SF service construction in the Program.cs Main()? ie: private static void Main() { try { ServiceRuntime.RegisterServiceAsync('Acme.Notification.ServiceType', context => new NotificationService(context,...
KnowHoper
1

votes
0

answer
71

Views

I am trying to make a multi machine node to run service fabric…but getting error

Running Best Practices Analyzer... Unable to change open service manager handle because 5 Unable to query service configuration because System.InvalidOperationException: Unable to change open service manager ha ndle because 5 at System.Fabric.FabricDeployer.FabricDeployerServiceController.GetService...
Himanshu Nimawat
1

votes
0

answer
17

Views

StatelessService Fabric parameter byte[] intializationData

I am writing Unit tests for a Service Fabric Reliable Service. My application is an OWIN hosted Stateless service, I want to write a Unit test for Communication listener, Which uses ServiceInitializationParameters class. I can't initialize a dummy object of this type since all the fields are read-on...
Gourav Bhattacharya
1

votes
2

answer
141

Views

Can't package Service Fabric application in Linux environment

I need to package my Service Fabric application in order to deploy it to the Azure Service Fabric cluster. There is no any error when I use this command in Windows: dotnet msbuild SfTestApp/SfTestApp.sfproj /t:Package But when I push my source code to Bitbucket and try to package my application at p...
Yurii Pelekh
1

votes
0

answer
49

Views

Service Fabric Configuration Array

In ASP.NET Core I can use configuration arrays like this in appsettings.json: { 'MySettings' 'MyArray': [ 'str1', 'str2', 'str3' ] } } Can I have configuration arrays in Azure Service Fabric? If yes - how?
Andrei
1

votes
1

answer
204

Views

Azure Service Fabric MultiMachine Windows X509 Cluster - Timed out waiting for Installer Service to complete for machine vm1

Need some advice, any help really appreciated. Trying to create a standalone service fabric cluster as https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-for-windows-server To be specific a Windows.X509.MultiMachine one. So, i have an Active Directory domain, it's...
Leonid Usachov
1

votes
1

answer
80

Views

WCF Sessions - Servic Fabric Stateful Service

Based on the documentation available at https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-wcf Does a Stateful Service in WCF supports Sessions? Tried the below attributes but it does not work. [ServiceBehavior(InstanceContextMode = InstanceContextMo...
sans_india85
1

votes
2

answer
84

Views

Encapsulating a workflow or a series of actions

I have a simple CRUD repository service. It executes operations against a remote repository. When creating/updating data, I need to orchestrate a series of actions: Update a different database Update CRM records Update another database I'm having trouble designing this orchestration from the perspe...
1

votes
0

answer
139

Views

Error when setting up continuous integration for Service Fabric Containers in Azure: The selected account doesn't have sufficient permissions

I am trying to get this tutorial working (Deploy a .NET application in a Windows container to Azure Service Fabric) but I am getting the error below: The selected account doesn't have sufficient permissions to access this team project. You'll need to use a different account The tutorial asks me to...
Banoona
1

votes
0

answer
101

Views

how do you expose a service for remoting?

Question Is it possible to instantiate FabricTransportServiceRemotingListener without the second parameter, IService? Background Service Fabric allows you to expose multiple remote endpoints, by which you can query the service from an external service. For example, the following code will expose thi...
1

votes
0

answer
486

Views

Service fabric - How to deploy docker container from local repository?

I have setup docker host in my local system running Windows Server 2016 and pushed docker container images using docker-compose. I would like to host these containers in my local service fabric cluster. Is it mandatory to push these docker container images to some public docker container repositori...
Kalaiselvan
1

votes
0

answer
197

Views

Service Fabric becomes unavailable after update to latest (6.1.456.9494)

I have two main symptoms of a larger problem. If I'm debugging an application in visual studio every once in a while I'll have it on a breakpoint and the service will just close. Here is the log when it 'crashes' WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Servi...
BenM
1

votes
0

answer
379

Views

WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service

Problem I am trying to deploy the service fabric application from Visual Studio and Power Shell. It shows me the same error Error WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service... WARNING: Failed to contact Failover Manager Service, Attempting to contact F...
Malik Kashmiri
1

votes
0

answer
188

Views

Managed service identity in Windows container using service fabric

I am trying to call MSI from the container on a VM inside a service fabric cluster. I am able to get the token from the host using: Invoke-WebRequest -Uri http://localhost:50342/oauth2/token -Method GET -Body @{resource='https://management.azure.com/'} -Headers @{Metadata='true'} However, when I try...
Ryu
1

votes
1

answer
117

Views

Load balancing subdomains in Azure Service Fabric

I have two web apps sitting in my FrontEnd node type of a Service Fabric cluster. One app is listening on port 7000, the other 8000, but both ultimately sitting behind the same load balancer with public IP 1.2.3.4. I would like to configure the DNS to point both app1.mydomain.com and app2.mydomain.c...
Slicc
1

votes
0

answer
68

Views

Failed to upload Azure Service Fabric package to Azure

I cannot upload an ASF package to a remote Azure Image Store. The process fails using the following script at 53.8% with 0/6 replicated files (0/0% complete). I cannot also publish to a remote cluster using Visual Studio. As I get the following error: WARNING: Failed to contact Naming Service. Attem...
KnowHoper
1

votes
1

answer
281

Views

Service Fabric Remoting to WebApi

We are running a few Stateless Reliable Services and are having performance issues with service-to-service communication using the reverse proxy (http://localhost:19081/{app}/{svc}/bleh). Without getting into the details there, we are looking into using remoting as described here: https://docs.micr...
Pedro Carbajal
1

votes
1

answer
268

Views

Running Azure Service Fabric as different user

Am trying to run my Service Fabric application in my local cluster to run as a different user. Use case is am trying to connect to my on prem database, but since n/w service accounts don't have access, i need to run my SF as logged in user. I've followed the below url exactly, as Admin user & domain...
VKh
1

votes
1

answer
469

Views

The connection with remote endpoint was terminated error in azure service fabric

I am getting the following error : Unable to start debugging 'path.exe' The connection with remote endpoint was terminated. I am running a service fabric solution with asp.net core console app and webApi projects on VS2017.
Saurabh Shah
1

votes
1

answer
464

Views

Azure Service Fabric and Managed Service Identities

I'm about the explore the use of MSI inside Service Fabric. I can enable MSI on the Scale Set through ARM - no problem there. My Service Fabric Cluster runs many applications and many of them has its own App Registration. At the moment we have stored the clientId/secret in appmanifest for these apps...
Casper Jensen
1

votes
0

answer
40

Views

Azure Fabric Service - Actor - for 3rd Party Service monitor (Health Checkup)

I have been developing a web API with multiple 3rd party services. I need to monitor that each service is running or not in CRM. And if any have failed, then I need to skip the service until it is turned up. Here, I need to concentrate, API long pooling service hit (performance). maintain the log f...
sankara pandian
1

votes
0

answer
177

Views

Application Insights Instrumentation Key not working using path declared in .json

In my service fabric stateless project, I have three .json files namely: appsettings.json appsettings.development.json eventFlowConfig.json These files are under the WebAPI project. The last file: eventFlowConfig.json contains a line: 'type': 'ApplicationInsights', 'Instrumentation Key': 'servicefab...
RKh
1

votes
0

answer
68

Views

Compressing traffic is very slow in .net core 2 service fabric web app

In my service fabric web service I am bundling up various js libraries which means my biggest file is now approximately 7MB in size and takes a few seconds to download. In order to try and improve the performance of the download I added response compression (UseResponseCompression). Unfortunately th...
Slicc
1

votes
0

answer
110

Views

Include database in Service Fabric Reliable Services transaction

Service Fabric has Reliable Services such as Reliable Collections and Reliable Queues. It has a Reliable State Manager that can start a transaction to atomically move things between a queue and a collection, etc. Is it possible to include a database in this transaction, like Azure SQL Database or Az...
yngling
1

votes
2

answer
59

Views

Azure Service Fabric - Clone Actors with state

Is there any way to clone an actor and its state and create the exact same actor, with the same actor Id and its corresponding state in another application in Azure Service Fabric? I've looked at the backup and restore, but it doesn't seem to do what I need. We have several instances of the same ap...
Steve C
1

votes
1

answer
77

Views

Configuring Azure ServiceFabric for development lifecycle - how to parameterize host name?

What's a good way to manage deploying code changes to Dev, Test, and Prod environments in Azure? The Azure / Service Fabric site provides an article for specifying port numbers using parameters under How-to guides - Manage application lifecycle (https://docs.microsoft.com/en-us/azure/service-fabric...
Search4Sound
1

votes
1

answer
137

Views

Diagnosing 'System.Fabric.FabricNotPrimaryException'

[Update below] We're encountering an issue whereby 'System.Fabric.FabricNotPrimaryException' is thrown very regularly from a new service that we're developing. The data flow is: Message is published to a particular partition by modding a unique identifier and looking up the correct partition id. Thi...
Alex Zevenbergen
1

votes
0

answer
90

Views

Docker GetServiceReferences: The given path's format is not supported

Trying to run locally a Web MVC application using Docker. Application compiles and runs fine when Set as StartUp Project outside of the docker-compose project but fails when docker-compose is Set as StartUp Project during the build when it comes to Target DockerGetServiceReferences: with C:\Program...
RVid
1

votes
1

answer
121

Views

Azure Service Fabric autoscaling of stateful services

Read this article on autoscaling in Service Fabric. Now I am wondering about how this works with stateful services. It is possible to add more partitions but what about redistributing the data? Example: 2 Partitions with range 0-99 Due to autoscaling we get a 3rd partition, what happens with data i...
Helikaon
1

votes
1

answer
230

Views

Azure Service Fabric Cluster Update

I have a cluster in Azure and it failed to update automatically so I'm trying a manual update. I tried via the portal, it failed so I kicked off an update using PS, it failed also. The update starts then just sits at 'UpdatingUserConfiguration' then after an hour or so fails with a time out. I ha...
acart

View additional questions