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.

33 lines
1.1 KiB

7 years ago
  1. # Deploying SQL Server & SQL Databases
  2. The ARM template `sqldeploy.json` and its parameter file (`sqldeploy.parameters.json`) are used to deploy following resources:
  3. 1. One SQL Server
  4. 2. Three SQL databases (for ordering, catalog and identity) services.
  5. 3. Firewall rules to **allow access from any IP to SQL Server**. This allows easy management, but is not desired in production environments.
  6. ## Editing sqldeploy.parameters.json file
  7. You have to edit the `sqldeploy.parameters.json` file to set your values. There are two parameters:
  8. 1. `sql_server` is a object parameter that contains the sql server name, the admin login and password, and the database names.
  9. 2. `suffix` is a suffix that will be added to thee sql_server name to ensure uniqueness.
  10. ## Deploy the template
  11. Once parameter file is edited you can deploy it using [create-resources script](../readme.md).
  12. 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:
  13. ```
  14. create-resources.cmd sql\sqldeploy newResourceGroup -c westus
  15. ```