question

Diptej-9898 avatar image
0 Votes"
Diptej-9898 asked vipullag-MSFT commented

Is it possible to disable some service from deploying in a service fabric application?

I want to disable some services from deploying in a region where those services are not needed but I couldn't find anything about this in the documentation.

I'm trying not to add any code changes to disable/not process in runtime.

azure-service-fabric
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered vipullag-MSFT commented

@Diptej-9898

Welcome to Microsoft Q&A Platform, thanks for posting your query here.

Based on your ask, looks like you don't want to deploy some services in a specific SF cluster. Please let me know if I am missing anything here.

However, if this is your ask, it is completely dependent on you which service/application you want to deploy and which you don't want to in SF cluster. If you don't want to deploy any service, you can remove it from you tools like Devops, visual studio , etc. and it won't get deployed.

Also regarding region specific, then Service Fabric cluster gets created in a specific region and VMSS comes handy for that, so all your apps/services will be specific to a region where SF cluster/VMSS are present.

Hope that helps.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @vipullag-MSFT for the response. If I understand correctly, are you saying to remove the service project from the source code? or even from the Build pipeline?

Is it possible to achieve this using Service Fabric configuration somehow? For eg. setting the instance count to zero in the ApplicationManifest.xml or in the parameters file, which I tried and didn't work.

0 Votes 0 ·

@Diptej-9898

Apologies in delayed response on this.

We cannot set instance count to zero as it doesn't make sense. Let's say an application consists of 5 services and you want to deploy only 4 of them to SF, so you can remove service from your code and then package and deploy rest 4 services on that app in SF.

Can you share more details on your use case to assist you better. Like what is the reason why you don't want a service not to be deployed in SF.



0 Votes 0 ·