You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

  1. # Deploying Azure Service Fabric
  2. The ARM template `servicefabricdeploy.json` and its parameter file (`servicefabricdeploy.parameters.json`) are used to create a service fabric cluster environment for windows containers.
  3. ## Editing servicefabricdeploy.parameters.json file
  4. Edit the following params in `servicefabricdeploy.parameters.json` file to set your values:
  5. - clusterName: Name of your SF cluster
  6. - dnsName: Name assigned to your SF dns
  7. - adminUserName: user name for administration
  8. - adminPassword: user password for administration
  9. Optionally, you can modify which ports are opened in the LoadBalancer for accessing externally to the apps:
  10. - webMvcHttpPort: port externally exposed for the WebMVC app
  11. - webSpaHttpPort: port externally exposed for the WebSPA app
  12. - webStatusHttpPort: port externally exposed for the WebStatus app
  13. - IdSrvHttpRule: port externally exposed for the Identity app
  14. ## Deploy the template
  15. Once parameter file is edited you can deploy it using [create-resources script](../readme.md).
  16. i. e. if you are in windows, to deploy sql databases in a new resourcegroup located in westus, go to `deploy\az` folder and type:
  17. ```
  18. create-resources.cmd servicefabric\WindowsContainers\servicefabricdeploy newResourceGroup -c westus
  19. ```
  20. ## Deploy eShopOnServiceFabric with Visual Studio.
  21. Alternatively, instead of using ARM templates, you can deploy eShop on service fabric directly by publishing the project eShopOnServiceFabric in eShopOnContainers-ServicesAndWebApps.sln with Visual Studio publish tool.