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.3 KiB

7 years ago
7 years ago
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 **must** edit the `sqldeploy.parameters.json` file to set login and password of the admin user.
  8. 1. `sql_server` is a object parameter that contains the sql server name and the database names. You can leave default values if you want.
  9. 2. `admin` is a string with the admin logon. You MUST provide a valid value
  10. 3. `adminpwd` is a string with the admin password. You MUST provide a valid value
  11. ARM script ensures uniqueness of the SQL server created by appending one unique string in its name (defined in the `sql_server.name` parameter).
  12. ## Deploy the template
  13. Once parameter file is edited you can deploy it using [create-resources script](../readme.md).
  14. 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:
  15. ```
  16. create-resources.cmd sql\sqldeploy newResourceGroup -c westus
  17. ```