# Azure Service Fabric

Azure Service Fabric is a distributed systems platform for deploying, operating, and scaling stateful and stateless microservices, containers, and executable applications across clusters of machines.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-service-fabric

> Service Fabric provides application lifecycle management, service placement, health monitoring, replication, and failover for distributed applications. On Azure, clusters run on virtual machine infrastructure, with managed clusters simplifying infrastructure administration; supported standalone Windows Server deployments also support environments outside Azure.

## 9 key features of Azure Service Fabric

1. **Stateful services with replicated data**: Reliable Services supports transactional Reliable Collections whose state is replicated across a partition's replica set. Use this model when computation benefits from keeping durable working state close to the service, and configure backups separately.
2. **Multiple hosting and programming models**: Run Reliable Services, Reliable Actors, guest executables, and supported Windows or Linux containers. Processes and containers can coexist within an application, subject to node operating system and runtime compatibility.
3. **Automatic placement and failure recovery**: The runtime places instances and replicas according to resource requirements, placement constraints, and fault-domain policies. It restarts failed services and promotes eligible secondary replicas when a stateful primary fails.
4. **Health-monitored rolling upgrades**: Update application code and configuration incrementally across upgrade domains. Health policies can pause or roll back an unsuccessful deployment, but applications must still maintain compatible protocols and persisted data formats.
5. **Partitioning and resource balancing**: Partition stateful workloads to distribute data and processing across nodes, and report load metrics to support placement decisions. Plan partition boundaries carefully because infrastructure scale-out alone does not remove a hot partition.
6. **Service discovery**: The Naming service resolves logical service names to current endpoints as services move between nodes. Clients should use supported resolution patterns and retry transient failures rather than cache node addresses indefinitely.
7. **Cluster and application health model**: Health information is aggregated across applications, services, partitions, replicas, and nodes. Add application-specific health reports so that upgrade decisions and operational alerts reflect functional problems as well as infrastructure failures.
8. **Stateful backup and restore**: Supported Reliable Stateful Services and Reliable Actors can use periodic and on-demand backups. Capture backups before risky changes and test restoration against explicit recovery point and recovery time objectives.
9. **Fault injection and resilience testing**: Service Fabric testability tools can introduce failures and exercise service transitions in a controlled environment. Use them to validate retry behavior, replica recovery, and availability during node or process failures.

## Where Azure Service Fabric is used

1. **Stateful microservice back ends**: Host services that maintain frequently accessed working data alongside business logic, such as inventory reservations or account workflows. Use partition-local transactions where appropriate and explicitly coordinate operations that cross partitions or external systems.
2. **Device telemetry processing**: Process device events with partitioned services or actors that maintain per-device state. Choose keys that distribute devices evenly and handle duplicate or out-of-order messages in application logic.
3. **Interactive sessions and gaming**: Represent game sessions, collaboration sessions, or user interactions as stateful services or actors. Keep active state close to computation while planning for reconnects and recovery after primary replica changes.
4. **Durable workflow and event processing**: Run long-lived workers that track workflow progress in replicated state and exchange messages through a broker. Use idempotent handlers and explicit settlement rules because local state updates and external message acknowledgments are not automatically one atomic transaction.
5. **Incremental modernization of existing applications**: Host compatible executable applications alongside newly developed services without immediately rewriting every component. Introduce service discovery, health reporting, and rolling deployment practices while validating configuration, storage, and node dependencies.
6. **Low-latency computation over working data**: Place computation near partitioned state for workloads such as recommendation evaluation or real-time rules processing. Benchmark replication overhead and partition skew against the latency requirements rather than assuming local state guarantees a particular response time.

## How Azure Service Fabric is priced

- **Underlying Azure infrastructure consumption**: Service Fabric has no separate platform charge; costs come from the Azure resources used by the cluster, including virtual machines, managed disks, networking, and public IP addresses. Provisioned nodes incur charges even when application traffic is low, and replica counts and spare capacity affect the infrastructure required.
- **Eligible compute savings options**: Eligible virtual machine usage can benefit from Azure Reservations or an Azure savings plan for compute, subject to the selected offer's terms. These discounts apply to qualifying compute consumption rather than to a separate Service Fabric meter.
- **Dependent services and operational data**: Budget separately for monitoring ingestion and retention, backup storage and operations, container registries, messaging, gateways, and applicable data transfer. High-volume diagnostics and cross-region backup or replication architectures can add material costs beyond the cluster's virtual machines.

## Services Azure Service Fabric works with

A common Azure architecture separates HTTP ingress, application execution, messaging, and operational storage. Application Gateway routes requests to a deliberately configured ingress tier, while Service Fabric resolves and operates services within the cluster. Node types backed by virtual machine scale set infrastructure provide distinct capacity pools for front ends, workers, and stateful services. Infrastructure scaling must preserve replica placement and upgrade capacity, and service instance counts must be managed separately where necessary.

Asynchronous workloads commonly use Service Bus to decouple producers from Service Fabric workers. Workers can keep processing progress in Reliable Collections, but they must handle duplicate delivery and the transaction boundary between local state and message settlement. Blob Storage provides a destination for supported stateful backups; retention and restore testing remain necessary even when multiple replicas are healthy.

Key Vault centralizes certificates and secrets, with access and rotation designed for the chosen cluster model and application identity. Azure Monitor collects application telemetry and cluster diagnostics to support investigation and alerting. Keep management endpoints separate from public application ingress, limit network access to dependent services, and correlate deployment activity with latency, resource usage, and health changes.

- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Export application telemetry and supported cluster diagnostics to Azure Monitor using appropriate instrumentation and collection configuration. For example, correlate API latency and exceptions with node resource pressure and Service Fabric health events. Configure alerts for unhealthy services and failed upgrades; cluster health reporting alone is not a complete historical observability solution.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Use Key Vault to store certificates and application secrets, with deployment and runtime access configured for the selected cluster and application model. For example, provision cluster certificates through supported mechanisms and let an application retrieve a database credential using an appropriately authorized managed identity where supported. Plan certificate renewal and secret rotation explicitly, including any application reload or restart requirements.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: Use Blob Storage as a backup destination for supported Service Fabric stateful backup and restore configurations. For example, schedule periodic backups of order-processing partitions and take an on-demand backup before a state format migration. Apply retention and access controls, and test restore procedures because replica redundancy does not protect against every logical corruption or disaster scenario.
- **[Service Bus](https://blowstack.com/tools/cloud-services-hub/service-bus)**: Service Fabric workers can consume queues or topic subscriptions through the Service Bus SDK. For example, a worker can receive an order command, persist processing progress in Reliable Collections, and complete the message after successful processing. Make handlers idempotent and handle lock renewal and redelivery because Service Bus settlement and Reliable Collections transactions are not automatically atomic.
- **[Azure Application Gateway](https://blowstack.com/tools/cloud-services-hub/azure-application-gateway)**: Place Application Gateway in front of HTTP services to provide application ingress, TLS termination, and optional web application firewall protection. For example, route an API hostname to a stable cluster ingress tier or configured backend pool, with health probes aligned to the application's readiness endpoint. Application Gateway does not automatically resolve Service Fabric service names, so backend discovery and routing require an explicit design.
- **[API Management](https://blowstack.com/tools/cloud-services-hub/api-management)**: Service Fabric can use API Management as an ingress gateway. A Service Fabric backend in API Management resolves services through the cluster's Naming Service and can route requests to a specific service or partition.
- **[Azure Container Registry](https://blowstack.com/tools/cloud-services-hub/azure-container-registry)**: Service Fabric can pull private container images from Azure Container Registry when deploying an application. A Service Fabric managed cluster can authenticate the pull with a managed identity instead of storing registry credentials in the application manifest.
- **[Azure Cosmos DB](https://blowstack.com/tools/cloud-services-hub/azure-cosmos-db)**: Service Fabric is part of the Microsoft-managed infrastructure that runs Azure Cosmos DB. Cosmos DB customers do not provision or administer the underlying Service Fabric clusters.
- **[Azure Data Factory](https://blowstack.com/tools/cloud-services-hub/azure-data-factory)**: Service Fabric runs internal components of the Azure Data Factory service. Creating a data factory or running a pipeline does not require a customer-managed Service Fabric cluster.
- **[Azure DDoS Protection](https://blowstack.com/tools/cloud-services-hub/azure-ddos-protection)**: A Service Fabric managed cluster can use an Azure DDoS Protection plan to protect its public IP endpoints. This adds network-layer DDoS mitigation for traffic directed at the cluster.
- **[Azure Dedicated Host](https://blowstack.com/tools/cloud-services-hub/azure-dedicated-host)**: A Service Fabric managed cluster can place a node type's virtual machines on an Azure Dedicated Host group. This lets the cluster run those nodes on physical servers reserved for the customer.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: Azure Pipelines has a Service Fabric service connection and deployment task for publishing application packages to a cluster. A release pipeline can use the task to roll out a new application version as a monitored upgrade.
- **[Azure Disk Storage](https://blowstack.com/tools/cloud-services-hub/azure-disk-storage)**: Service Fabric managed cluster node types provision Azure managed data disks for the Service Fabric data directory. The disk type and size are configurable per node type, so nodes running stateful services can use Premium SSD storage.
- **[Azure Files](https://blowstack.com/tools/cloud-services-hub/azure-files)**: Service Fabric container applications can mount an Azure Files share using the Service Fabric Azure Files volume driver. A replacement container can mount the same share and access files written by its predecessor.
- **[Azure IoT Hub](https://blowstack.com/tools/cloud-services-hub/azure-iot-hub)**: Service Fabric runs internal components of the managed Azure IoT Hub service. An IoT Hub customer does not deploy or manage the clusters that run those components.
- **[Azure Load Balancer](https://blowstack.com/tools/cloud-services-hub/azure-load-balancer)**: Service Fabric clusters on Azure use Azure Load Balancer rules to forward traffic to node ports. Health probes let the load balancer stop sending new traffic to nodes that do not respond on the configured endpoint.
- **[Azure Marketplace](https://blowstack.com/tools/cloud-services-hub/azure-marketplace)**: Azure Marketplace offers Service Fabric cluster deployment listings. Starting from a listing opens a guided deployment that provisions the cluster and its Azure infrastructure.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy has built-in definitions that evaluate Service Fabric cluster settings. For example, a policy can flag clusters whose protection level is not set to EncryptAndSign.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: The Azure portal provides dedicated views for creating and managing Service Fabric clusters. For a managed cluster, operators can add or scale node types and open Service Fabric Explorer to inspect cluster health.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: A Service Fabric managed cluster can use a customer-provided internal Standard Load Balancer with an Azure Private Link service. Consumers can reach the cluster endpoints exposed through that load balancer from private endpoints in their own virtual networks.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Azure Resource Manager exposes Service Fabric clusters, managed clusters, and managed-cluster node types as deployable resource types. A deployment can declare the cluster, node types, and application resources together.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Service Fabric uses Azure RBAC to authorize Azure Resource Manager operations on clusters and their Azure resources. For example, a role assignment can let an operator read the cluster configuration without granting permission to modify it.
- **[Azure SQL Database](https://blowstack.com/tools/cloud-services-hub/azure-sql-database)**: Azure SQL Database uses Service Fabric to orchestrate parts of its managed database infrastructure. In the General Purpose tier, Service Fabric manages the stateless compute layer separately from durable database storage.
- **[Azure SQL Managed Instance](https://blowstack.com/tools/cloud-services-hub/azure-sql-managed-instance)**: Azure SQL Managed Instance uses Service Fabric to manage database compute in its service infrastructure. In the General Purpose tier, the compute layer is managed separately from persistent database files.
- **[Azure Stream Analytics](https://blowstack.com/tools/cloud-services-hub/azure-stream-analytics)**: Service Fabric runs internal components of the Azure Stream Analytics cloud service. Customers submit and scale streaming jobs through Stream Analytics without managing the underlying Service Fabric clusters.
- **[Azure Traffic Manager](https://blowstack.com/tools/cloud-services-hub/azure-traffic-manager)**: Service Fabric applications deployed to clusters in multiple regions can use Traffic Manager to direct clients to a healthy regional endpoint. In a priority configuration, Traffic Manager returns the secondary cluster's endpoint when the primary endpoint fails its health checks.
- **[Azure Virtual Machine Scale Sets](https://blowstack.com/tools/cloud-services-hub/azure-virtual-machine-scale-sets)**: Service Fabric uses a virtual machine scale set to supply the instances for each Azure cluster node type. The Service Fabric VM extension configures those instances as cluster nodes.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Service Fabric cluster nodes attach to Azure Virtual Network subnets for node-to-node and application traffic. A managed cluster can use a customer-provided virtual network so its nodes sit within an existing private network.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: A Service Fabric cluster can use the Azure Diagnostics extension on its Windows nodes to stream collected Service Fabric events to Event Hubs. This gives downstream consumers a stream of cluster diagnostics without requiring changes to the hosted applications.
- **[Linux Virtual Machines](https://blowstack.com/tools/cloud-services-hub/linux-virtual-machines)**: Service Fabric supports Azure clusters whose nodes run supported Linux VM images. The Service Fabric runtime on those nodes hosts Linux services and containers.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Microsoft Defender for Cloud can surface security recommendations for Service Fabric clusters, including clusters that do not require both signing and encryption for node-to-node communication.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Service Fabric can use Microsoft Entra ID to authenticate users connecting to cluster management endpoints. Application role assignments can distinguish read-only users from cluster administrators.
- **[Table Storage](https://blowstack.com/tools/cloud-services-hub/table-storage)**: The Azure Diagnostics extension on Service Fabric cluster nodes can write collected platform events to Azure Table Storage. Operators can query those tables to investigate cluster events after an incident.
- **[Virtual Machines](https://blowstack.com/tools/cloud-services-hub/virtual-machines)**: Azure virtual machines provide the compute for Service Fabric cluster nodes. Each node runs the Service Fabric runtime, which places and manages service instances and replicas across the VMs.

## Alternatives to Azure Service Fabric in other clouds

### AWS

**[Amazon Elastic Container Service (Amazon ECS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-container-service-(amazon-ecs))**: Amazon ECS and Azure Service Fabric both deploy and scale containerized applications and manage workload placement across clusters. Amazon ECS can run containers on EC2 or on Fargate without managing servers, while Azure Service Fabric runs on VM clusters in Azure and can host executables alongside containers.

| | Azure Service Fabric | Amazon Elastic Container Service (Amazon ECS) |
| --- | --- | --- |
| Compute on the provider's cloud | Azure VMs in managed or classic clusters | EC2 or serverless Fargate |
| Application packaging | Containers and guest executables | Docker containers |

Compared Nov 2026.

**[Red Hat OpenShift Service on AWS (ROSA)](https://blowstack.com/tools/cloud-services-hub/red-hat-openshift-service-on-aws-(rosa))**: Red Hat OpenShift Service on AWS (ROSA) and Azure Service Fabric both deploy and scale containerized applications across clusters. ROSA uses OpenShift Kubernetes and charges service fees in addition to AWS infrastructure costs, while Azure Service Fabric uses its own runtime and has no separate platform fee.

| | Azure Service Fabric | Red Hat OpenShift Service on AWS (ROSA) |
| --- | --- | --- |
| Orchestration runtime | Service Fabric | OpenShift (Kubernetes) |
| Billed for | Azure resources; no platform fee | AWS infrastructure plus ROSA fees |
| What discounts apply to | Eligible Azure VM usage | ROSA worker-node service fees |

Compared Nov 2026.

## What is Azure Service Fabric

Azure Service Fabric orchestrates applications across a cluster of network-connected machines called nodes. Applications contain service types, executable code or container images, configuration, and deployment manifests. The runtime places service instances and replicas on suitable nodes, monitors their health, and moves or restarts workloads when failures occur or cluster capacity changes. Applications can combine stateless front ends, background workers, and stateful processing services within the same cluster.

Service Fabric offers several application models. Reliable Services integrates application code with service lifecycle, communication, and health APIs. Stateful Reliable Services can store transactional data in Reliable Collections, with Service Fabric replicating that state across replicas. Reliable Actors builds on Reliable Services to provide virtual actors with individually addressed state and turn-based execution. Existing applications can instead run as guest executables or containers, but hosting an arbitrary process does not automatically give its application data the replication and transaction semantics of Reliable Collections.

Stateful services divide their data and processing into partitions. Each partition maintains a replica set, and a primary replica handles writes while secondary replicas receive replicated state. Engineers must choose partition keys, replica counts, storage capacity, and placement policies that fit the workload. Avoid hot partitions, allow capacity for node failures and upgrades, and design clients to resolve changing service endpoints and retry transient failures. Replication protects availability but is not a substitute for backups or a regional disaster recovery strategy.

On Azure, choose between Service Fabric managed clusters and classic clusters. Managed clusters simplify management of the underlying infrastructure through the cluster resource, while classic clusters expose more infrastructure resources for direct administration. Define node types to separate workloads with different compute, memory, or isolation requirements. Coordinate infrastructure scaling with application scaling: adding machines creates capacity, but it does not necessarily increase a service's configured instance count or solve an unsuitable partitioning strategy.

Deploy versioned application packages and use health-monitored rolling upgrades to update services incrementally across upgrade domains. Configure meaningful health reports, evaluation periods, failure thresholds, and rollback behavior rather than relying only on process liveness. Stateful upgrades also require compatible data formats and carefully tested migration logic, because rolling back binaries does not automatically reverse persisted data changes. Test replica movement, primary failover, node loss, and restore procedures before production deployment.

Secure cluster management separately from application ingress. Configure authentication, certificates, network security rules, and least-privilege access to dependent services. Export application telemetry and cluster diagnostics to a monitoring platform, and alert on unhealthy partitions, resource pressure, failed upgrades, and certificate expiry. Maintain supported runtime and operating system versions: Service Fabric support for clusters running Windows Server 2019 or Windows Server 2022 ends on March 31, 2027, requiring an upgrade to Windows Server 2025. Azure Service Fabric Mesh was a separate offering whose preview retired in 2021; its retirement did not retire Service Fabric clusters.
