Service Fabric can be deployed on-premises, in Azure, or AWS or where ever Windows or Linux version of Service Fabric runtime is installed. Azure functions are only executed in Azure you have no on-premises choice neither choice of cloud deployment environment.
