Skip to content

Commit abd4e9e

Browse files
author
Melony QIN
authored
Merge pull request #10 from microsoft/master
merge from master
2 parents 595b037 + e6466b6 commit abd4e9e

28 files changed

Lines changed: 2173 additions & 1235 deletions

File tree

samples/features/high availability/Kubernetes/readme.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,3 @@
22

33

44
Availability Groups on SQL Server Containers was provided during SQL Server 2019 preview releases to demonstrate a potential capability. SQL Server 2019 does not support Availability Groups on containers.
5-
6-
Go to the documentation to learn more about:
7-
8-
[Always On Availability Groups for SQL Server containers](https://docs.microsoft.com/en-us/sql/linux/sql-server-ag-kubernetes)
9-
10-
[Deploy a SQL Server Always On Availability Group on Kubernetes Cluster](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-kubernetes-deploy)
11-
12-
[Create deployment script for SQL Server Always On Availability Group](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-kubernetes-create-deployment)
1.13 MB
Binary file not shown.

samples/features/sql-big-data-cluster/app-deploy/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Application deployment on SQL Server big data cluster
22

33
## Build more intelligent apps
4-
Application deployment allows you to deploy applications into SQL Server big data cluster as containers. These apps are hosted for you and exposed as Swagger compliant web services for usage in your application. The apps you deploy have access to the data stored in the big data cluster and can be monitored easily. For more information, see [How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions). This page provides a number of samples for different technology stacks.
4+
Application deployment allows you to deploy applications into SQL Server big data cluster as containers. These apps are hosted for you and exposed as Swagger compliant web services for usage in your application. The apps you deploy have access to the data stored in the big data cluster and can be monitored easily. For more information, see [How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps). This page provides a number of samples for different technology stacks.
55

66
![Appdeploy](Appdeploy.PNG)
77

88
## Pre-requisites
99
* SQL Server big data cluster CTP 2.3 or later
10-
* `azdata` CLI familiarity. If you are unfamiliar with `azdata` please refer to - [App Deployment in SQL Server big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) for more information.
10+
* `azdata` CLI familiarity. If you are unfamiliar with `azdata` please refer to - [App Deployment in SQL Server big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps) for more information.
1111

1212
* Tip
1313
**azdata app -h** will display the various commands to manage the app
1414

1515
## Templates
16-
Templates are used by our [App Deploy add-ins](https://docs.microsoft.com/en-us/sql/big-data-cluster/app-deployment-extension?view=sqlallproducts-allversions) and can be used to quickly deploy applications.
16+
Templates are used by our [App Deploy add-ins](https://docs.microsoft.com/en-us/sql/big-data-cluster/app-deployment-extension) and can be used to quickly deploy applications.
1717
> Looking for our templates? See [the SQLBDC-AppDeploy repo](https://github.com/Microsoft/SQLBDC-AppDeploy).
1818
1919
## Available samples
@@ -53,4 +53,4 @@ These samples demonstrates how you can deploy a simple R app into SQL Server big
5353
## Related Links
5454
For more information, see these articles:
5555

56-
[How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions)
56+
[How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps)

samples/features/sql-big-data-cluster/app-deploy/RollDice/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To run this sample, you need the following prerequisites.
4141
## Run this sample
4242

4343
1. Clone or download this sample on your computer.
44-
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `mssqltctl` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
44+
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `azdata` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
4545

4646
```bash
4747
azdata login -e https://<ip-address-of-controller-svc-external>:30080 -u <user-name> -p <password>
@@ -119,4 +119,4 @@ output:
119119
## Related Links
120120
For more information, see these articles:
121121

122-
[How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions)
122+
[How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps)

samples/features/sql-big-data-cluster/app-deploy/SSIS/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To run this sample, you need the following prerequisites.
3232
## Run this sample
3333

3434
1. Clone or download this sample on your computer.
35-
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `mssqltctl` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
35+
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `azdata` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
3636

3737
```bash
3838
azdata login -e https://<ip-address-of-controller-svc-external>:30080 -u <user-name>
@@ -49,7 +49,7 @@ To run this sample, you need the following prerequisites.
4949
Once the app is listed as `Ready` the job should run within a minute.
5050
You can check if the backup is created by running:
5151
```bash
52-
kubectl -n [your namespace] exec -it mssql-master-pool-0 -c mssql-server -- /bin/bash -c "ls /var/opt/mssql/data/*.DWConfigbak"
52+
kubectl -n [your namespace] exec -it master-0 -c mssql-server -- /bin/bash -c "ls /var/opt/mssql/data/*.DWConfigbak"
5353
```
5454
You should see a backup being created for every run of the job, with a maximum of 60 backups since the SSIS package cleans up backups older than one hour.
5555
You can use any of the `.DWConfigbak` files to restore the database.
@@ -80,7 +80,7 @@ name: back-up-db
8080
version: v1
8181
runtime: SSIS
8282
entrypoint: ./back-up-db.dtsx
83-
options: /REP V /CONN "MasterSQL"\;"\"Data Source=service-master-pool;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
83+
options: /REP V /CONN "MasterSQL"\;"\"Data Source=master-svc;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
8484
schedule: "*/1 * * * *"
8585
```
8686

@@ -89,4 +89,4 @@ schedule: "*/1 * * * *"
8989
## Related Links
9090
For more information, see these articles:
9191

92-
[How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions)
92+
[How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps)

samples/features/sql-big-data-cluster/app-deploy/SSIS/spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name: back-up-db
22
version: v1
33
runtime: SSIS
44
entrypoint: ./back-up-db.dtsx
5-
options: /REP V /CONN "MasterSQL"\;"\"Data Source=master-0;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
5+
options: /REP V /CONN "MasterSQL"\;"\"Data Source=master-svc;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
66
schedule: "*/1 * * * *"

samples/features/sql-big-data-cluster/app-deploy/addpy/README.md

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ To run this sample, you need the following prerequisites.
3535
**Software prerequisites:**
3636

3737
1. SQL Server big data cluster CTP 2.3 or later.
38-
2. `azdata`. Refer to [installing azdata](https://docs.microsoft.com/en-us/sql/big-data-cluster/deploy-install-azdata?view=sqlallproducts-allversions) document on setting up the `azdata` and connecting to a SQL Server 2019 big data cluster.
38+
2. `azdata`. Refer to [installing azdata](https://docs.microsoft.com/en-us/sql/big-data-cluster/deploy-install-azdata) document on setting up the `azdata` and connecting to a SQL Server 2019 big data cluster.
3939

4040
<a name=run-this-sample></a>
4141

4242
## Run this sample
4343

4444
1. Clone or download this sample on your computer.
45-
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `mssqltctl` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
45+
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `azdata` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps) and then return to this sample.
4646

4747
```bash
4848
azdata login -e https://<ip-address-of-controller-svc-external>:30080 -u <user-name>
@@ -73,56 +73,7 @@ To run this sample, you need the following prerequisites.
7373
"success": true
7474
}
7575
```
76-
6. <a name=restapi></a>Any app you create is also accessible using a RESTful web service that is [Swagger](swagger.io) compliant. You can get the endpoint for the web service by running:
77-
```bash
78-
azdata app describe --name addpy --version [version]
79-
```
80-
This will return an output much like the following:
81-
```json
82-
{
83-
"input_param_defs": [
84-
{
85-
"name": "x",
86-
"type": "int"
87-
},
88-
{
89-
"name": "y",
90-
"type": "int"
91-
}
92-
],
93-
"links": {
94-
"app": "https://[IP]:[PORT]/api/app/addpy/[version]",
95-
"swagger": "https://[IP]:[PORT]/api/app/addpy/[version]/swagger.json"
96-
},
97-
"name": "addpy",
98-
"output_param_defs": [
99-
{
100-
"name": "result",
101-
"type": "int"
102-
}
103-
],
104-
"state": "Ready",
105-
"version": "[version]"
106-
}
107-
```
108-
Note the IP address and the port number in this output. Open the following URL in your browser:
109-
`https://[IP]:[PORT]/api/docs/swagger.json`. You will have to log in with the same credentials you used for `azdata login`. The contents of the `swagger.json` you can paste into [Swagger Editor](https://editor.swagger.io) to understand what methods are available:
110-
![API Swagger](api_swagger.png)
111-
112-
Notice the `app` GET method as well as the `token` POST method. Since the authentication for apps uses JWT tokens you will need to get a token my using your favorite tool to make a POST call to the `token` method. Here is an example of how to do just that in [Postman](https://www.getpostman.com/):
113-
![Postman Token](postman_token.png)
114-
115-
The result of this request will give you an `access_token`, which you will need to call the URL to run the app.
116-
117-
> *Optional*: If you want, you can open the URL for the `swagger` that was returned when you ran `azdata app describe --name addpy --version [version]` in your browser. You will have to log in with the same credentials you used for `azdata login`. The contents of the `swagger.json` you can paste into [Swagger Editor](https://editor.swagger.io). You will see that the web service exposes the `run` method.
118-
119-
You can use your favorite tool to call the `run` method (`https://[IP]:30778/api/app/addpy/[version]/run`), passing in the parameters in the body of your POST request as json. In this example we will use [Postman](https://www.getpostman.com/). Before making the call, you will need to set the `Authorization` to `Bearer Token` and paste in the token you retrieved earlier. This will set a header on your request. See the screenshot below.
120-
![Postman Run Headers](postman_run_1.png)
121-
Next, in the requests body, pass in the parameters to the app you are calling and set the `content-type` to `application/json`:
122-
![Postman Run Body](postman_run_2.png)
123-
When you send the request, you will get the same output as you did when you ran the app through `azdata app run`:
124-
![Postman Run Result](postman_result.png)
125-
You have now successfully called the app through the web service!
76+
6. <a name=restapi></a>Any app you create is also accessible using a RESTful web service that is [Swagger](swagger.io) compliant. See: [Consume an app deployed on SQL Server Big Data Clusters using a RESTful web service](https://docs.microsoft.com/en-us/sql/big-data-cluster/app-consume).
12677

12778
7. You can clean up the sample by running the following commands:
12879
```bash
@@ -159,4 +110,4 @@ output:
159110
## Related Links
160111
For more information, see these articles:
161112

162-
[How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions)
113+
[How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps)

samples/features/sql-big-data-cluster/app-deploy/magic8ball/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To run this sample, you need the following prerequisites.
4141
## Run this sample
4242

4343
1. Clone or download this sample on your computer.
44-
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `mssqltctl` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
44+
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `azdata` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
4545

4646
```bash
4747
azdata login -e https://<ip-address-of-controller-svc-external>:30080 -u <user-name>
@@ -109,4 +109,4 @@ output:
109109
## Related Links
110110
For more information, see these articles:
111111

112-
[How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions)
112+
[How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps)

samples/features/sql-big-data-cluster/app-deploy/mleap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To run this sample, you need the following prerequisites.
3838
## Run this sample
3939

4040
1. Clone or download this sample on your computer.
41-
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `mssqltctl` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
41+
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `azdata` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
4242

4343
```bash
4444
azdata login -e https://<ip-address-of-controller-svc-external>:30080 -u <user-name>

samples/features/sql-big-data-cluster/app-deploy/sentiment-analysis/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To run this sample, you need the following prerequisites.
4242
## Run this sample
4343

4444
1. Clone or download this sample on your computer.
45-
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `mssqltctl` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
45+
2. Log in to the SQL Server big data cluster using the command below using the IP address of the `controller-svc-external` in your cluster. If you are not familiar with `azdata` you can refer to the [documentation](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions) and then return to this sample.
4646

4747
```bash
4848
azdata login -e https://<ip-address-of-controller-svc-external>:30080 -u <user-name>
@@ -120,4 +120,4 @@ output:
120120
## Related Links
121121
For more information, see these articles:
122122

123-
[How to deploy and app on SQL Server 2019 big data cluster (preview)](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps?view=sqlallproducts-allversions)
123+
[How to deploy and app on SQL Server 2019 big data cluster](https://docs.microsoft.com/en-us/sql/big-data-cluster/big-data-cluster-create-apps)

0 commit comments

Comments
 (0)