Skip to content

Commit 8e03235

Browse files
committed
Rename mssqlctl to azdata
1 parent cfc02e2 commit 8e03235

40 files changed

Lines changed: 524 additions & 524 deletions

docs/big-data-cluster/big-data-cluster-consume-apps.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,33 @@ This article describes how to consume an app deployed on a SQL Server 2019 big d
2020
## Prerequisites
2121

2222
- [SQL Server 2019 big data cluster](deployment-guidance.md)
23-
- [mssqlctl command-line utility](deploy-install-mssqlctl.md)
24-
- An app deployed using either [`mssqlctl`](big-data-cluster-create-apps.md) or the [App Deploy extension](app-deployment-extension.md)
23+
- [azdata command-line utility](deploy-install-mssqlctl.md)
24+
- An app deployed using either [`azdata`](big-data-cluster-create-apps.md) or the [App Deploy extension](app-deployment-extension.md)
2525

2626
## Capabilities
2727

28-
After you have deployed an application to your SQL Server 2019 big data cluster (preview), you can access and consume that application using a RESTful web service. This enables integration of that app from other applications or services (for example, a mobile app or website). The following table describes the application deployment commands that you can use with **mssqlctl** to get information about the RESTful web service for your app.
28+
After you have deployed an application to your SQL Server 2019 big data cluster (preview), you can access and consume that application using a RESTful web service. This enables integration of that app from other applications or services (for example, a mobile app or website). The following table describes the application deployment commands that you can use with **azdata** to get information about the RESTful web service for your app.
2929

3030
|Command |Description |
3131
|:---|:---|
32-
|`mssqlctl app describe` | Describe application. |
32+
|`azdata app describe` | Describe application. |
3333

3434
You can get help with the `--help` parameter as in the following example:
3535

3636
```bash
37-
mssqlctl app describe --help
37+
azdata app describe --help
3838
```
3939

4040
The following sections describe how to retrieve an endpoint for an application and how to work with the RESTful web service for application integration.
4141

4242
## Retrieve the endpoint
4343

44-
The **mssqlctl app describe** command provides detailed information about the app including the end point in your cluster. This is typically used by an app developer to build an app using the swagger client and using the webservice to interact with the app in a RESTful manner.
44+
The **azdata app describe** command provides detailed information about the app including the end point in your cluster. This is typically used by an app developer to build an app using the swagger client and using the webservice to interact with the app in a RESTful manner.
4545

4646
Describe your app by running a command similar to the following:
4747

4848
```bash
49-
mssqlctl app describe --name addpy --version v1
49+
azdata app describe --name addpy --version v1
5050
```
5151

5252
```json
@@ -81,7 +81,7 @@ Note the IP address (`10.1.1.3` in this example) and the port number (`30777`) i
8181

8282
## Generate a JWT access token
8383

84-
In order to access the RESTful web service for the app you have deployed you first have to generate a JWT Access token. Open the following URL in your browser: `https://[IP]:[PORT]/api/docs/swagger.json` using the IP address and port you retrieved running the `describe` command above. You will have to log in with the same credentials you used for `mssqlctl login`.
84+
In order to access the RESTful web service for the app you have deployed you first have to generate a JWT Access token. Open the following URL in your browser: `https://[IP]:[PORT]/api/docs/swagger.json` using the IP address and port you retrieved running the `describe` command above. You will have to log in with the same credentials you used for `azdata login`.
8585

8686
Paste the contents of the `swagger.json` into the [Swagger Editor](https://editor.swagger.io) to understand what methods are available:
8787

@@ -96,7 +96,7 @@ The result of this request will give you an JWT `access_token`, which you will n
9696
## Execute the app using the RESTful web service
9797

9898
> [!NOTE]
99-
> If you want, you can open the URL for the `swagger` that was returned when you ran `mssqlctl app describe --name [appname] --version [version]` in your browser, which should be similar to `https://[IP]:[PORT]/api/app/[appname]/[version]/swagger.json`. You will have to log in with the same credentials you used for `mssqlctl 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. Also note the Base URL displayed at the top.
99+
> If you want, you can open the URL for the `swagger` that was returned when you ran `azdata app describe --name [appname] --version [version]` in your browser, which should be similar to `https://[IP]:[PORT]/api/app/[appname]/[version]/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). You will see that the web service exposes the `run` method. Also note the Base URL displayed at the top.
100100
101101
You can use your favorite tool to call the `run` method (`https://[IP]:30778/api/app/[appname]/[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.
102102

@@ -106,7 +106,7 @@ Next, in the requests body, pass in the parameters to the app you are calling an
106106

107107
![Postman Run Body](media/big-data-cluster-consume-apps/postman_run_2.png)
108108

109-
When you send the request, you will get the same output as you did when you ran the app through `mssqlctl app run`:
109+
When you send the request, you will get the same output as you did when you ran the app through `azdata app run`:
110110

111111
![Postman Run Result](media/big-data-cluster-consume-apps/postman_result.png)
112112

docs/big-data-cluster/big-data-cluster-create-apps.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Deploy applications using mssqlctl
2+
title: Deploy applications using azdata
33
titleSuffix: SQL Server big data clusters
44
description: Deploy a Python or R script as an application on SQL Server 2019 big data cluster (preview).
55
author: jeroenterheerdt
@@ -24,7 +24,7 @@ This article describes how to deploy and manage R and Python script as an applic
2424
- Support hosting additional application types - SSIS and MLeap (new in CTP 2.3)
2525
- [VS Code Extension](app-deployment-extension.md) to manage application deployment
2626

27-
Applications are deployed and managed using `mssqlctl` command-line utility. This article provides examples of how to deploy apps from the command line. To learn how to use this in Visual Studio Code refer to [VS Code Extension](app-deployment-extension.md).
27+
Applications are deployed and managed using `azdata` command-line utility. This article provides examples of how to deploy apps from the command line. To learn how to use this in Visual Studio Code refer to [VS Code Extension](app-deployment-extension.md).
2828

2929
The following types of apps are supported:
3030
- R and Python apps (functions, models and apps)
@@ -34,37 +34,37 @@ The following types of apps are supported:
3434
## Prerequisites
3535

3636
- [SQL Server 2019 big data cluster](deployment-guidance.md)
37-
- [mssqlctl command-line utility](deploy-install-mssqlctl.md)
37+
- [azdata command-line utility](deploy-install-mssqlctl.md)
3838

3939
## Capabilities
4040

41-
In SQL Server 2019 (preview) you can create, delete, describe, initialize, list run and update your application. The following table describes the application deployment commands that you can use with **mssqlctl**.
41+
In SQL Server 2019 (preview) you can create, delete, describe, initialize, list run and update your application. The following table describes the application deployment commands that you can use with **azdata**.
4242

4343
|Command |Description |
4444
|:---|:---|
45-
|`mssqlctl login` | Sign into a SQL Server big data cluster |
46-
|`mssqlctl app create` | Create application. |
47-
|`mssqlctl app delete` | Delete application. |
48-
|`mssqlctl app describe` | Describe application. |
49-
|`mssqlctl app init` | Kickstart new application skeleton. |
50-
|`mssqlctl app list` | List application(s). |
51-
|`mssqlctl app run` | Run application. |
52-
|`mssqlctl app update`| Update application. |
45+
|`azdata login` | Sign into a SQL Server big data cluster |
46+
|`azdata app create` | Create application. |
47+
|`azdata app delete` | Delete application. |
48+
|`azdata app describe` | Describe application. |
49+
|`azdata app init` | Kickstart new application skeleton. |
50+
|`azdata app list` | List application(s). |
51+
|`azdata app run` | Run application. |
52+
|`azdata app update`| Update application. |
5353

5454
You can get help with the `--help` parameter as in the following example:
5555

5656
```bash
57-
mssqlctl app create --help
57+
azdata app create --help
5858
```
5959

6060
The following sections describe these commands in more detail.
6161

6262
## Sign in
6363

64-
Before you deploy or interact with applications, first sign in to your SQL Server big data cluster with the `mssqlctl login` command. Specify the external IP address of the `controller-svc-external` service (for example: `https://ip-address:30080`) along with the user name and password to the cluster.
64+
Before you deploy or interact with applications, first sign in to your SQL Server big data cluster with the `azdata login` command. Specify the external IP address of the `controller-svc-external` service (for example: `https://ip-address:30080`) along with the user name and password to the cluster.
6565

6666
```bash
67-
mssqlctl login --controller-endpoint https://<ip-address-of-controller-svc-external>:30080 --controller-username <user-name>
67+
azdata login --controller-endpoint https://<ip-address-of-controller-svc-external>:30080 --controller-username <user-name>
6868
```
6969

7070
## AKS
@@ -86,18 +86,18 @@ kubectl get node --selector='node-role.kubernetes.io/master'
8686

8787
## Create an app
8888

89-
To create an application, you use `mssqlctl` with the `app create` command. These files reside locally on the machine that you are creating the app from.
89+
To create an application, you use `azdata` with the `app create` command. These files reside locally on the machine that you are creating the app from.
9090

9191
Use the following syntax to create a new app in big data cluster:
9292

9393
```bash
94-
mssqlctl app create --spec <directory containing spec file>
94+
azdata app create --spec <directory containing spec file>
9595
```
9696

9797
The following command shows an example of what this command might look like:
9898

9999
```bash
100-
mssqlctl app create --spec ./addpy
100+
azdata app create --spec ./addpy
101101
```
102102

103103
This assumes that you have your application stored in the `addpy` folder. This folder should also contain a specification file for the application, called `spec.yaml`. Please see [the Application Deployment page](concept-application-deployment.md) for more information on the `spec.yaml` file.
@@ -132,13 +132,13 @@ To deploy this app sample app, create the following files in a directory called
132132
Then, run the command below:
133133
134134
```bash
135-
mssqlctl app create --spec ./addpy
135+
azdata app create --spec ./addpy
136136
```
137137

138138
You can check if the app is deployed using the list command:
139139

140140
```bash
141-
mssqlctl app list
141+
azdata app list
142142
```
143143

144144
If the deployment is not complete you should see the `state` show `WaitingforCreate` as the following example:
@@ -172,19 +172,19 @@ You can list any apps that were successfully created with the `app list` command
172172
The following command lists all available applications in your big data cluster:
173173

174174
```bash
175-
mssqlctl app list
175+
azdata app list
176176
```
177177

178178
If you specify a name and version, it lists that specific app and its state (Creating or Ready):
179179

180180
```bash
181-
mssqlctl app list --name <app_name> --version <app_version>
181+
azdata app list --name <app_name> --version <app_version>
182182
```
183183

184184
The following example demonstrates this command:
185185

186186
```bash
187-
mssqlctl app list --name add-app --version v1
187+
azdata app list --name add-app --version v1
188188
```
189189

190190
You should see output similar to the following example:
@@ -204,13 +204,13 @@ You should see output similar to the following example:
204204
If the app is in a `Ready` state, you can use it by running it with your specified input parameters. Use the following syntax to run an app:
205205

206206
```bash
207-
mssqlctl app run --name <app_name> --version <app_version> --inputs <inputs_params>
207+
azdata app run --name <app_name> --version <app_version> --inputs <inputs_params>
208208
```
209209

210210
The following example command demonstrates the run command:
211211

212212
```bash
213-
mssqlctl app run --name add-app --version v1 --inputs x=1,y=2
213+
azdata app run --name add-app --version v1 --inputs x=1,y=2
214214
```
215215

216216
If the run was successful, you should see your output as specified when you created the app. The following is an example.
@@ -233,7 +233,7 @@ If the run was successful, you should see your output as specified when you crea
233233
The init command provides a scaffold with the relevant artifacts that is required for deploying an app. The example below creates hello you can do this by running the following command.
234234

235235
```bash
236-
mssqlctl app init --name hello --version v1 --template python
236+
azdata app init --name hello --version v1 --template python
237237
```
238238

239239
This will create a folder called hello. You can `cd` into the directory and inspect the generated files in the folder. spec.yaml defines the app, such as name, version and source code. You can edit the spec to change name, version, input and outputs.
@@ -285,7 +285,7 @@ The describe command provides detailed information about the app including the e
285285
To delete an app from your big data cluster, use the following syntax:
286286

287287
```bash
288-
mssqlctl app delete --name add-app --version v1
288+
azdata app delete --name add-app --version v1
289289
```
290290

291291
## Next steps

docs/big-data-cluster/cluster-troubleshooting-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The following services support external connections to the big data cluster:
114114
| **appproxy-svc-external** | Support application deployment scenarios. |
115115

116116
> [!TIP]
117-
> This is a way of viewing the services with **kubectl**, but it is also possible to use `mssqlctl bdc endpoint list` command to view these endpoints. For more information, see [Get big data cluster endpoints](deployment-guidance.md#endpoints).
117+
> This is a way of viewing the services with **kubectl**, but it is also possible to use `azdata bdc endpoint list` command to view these endpoints. For more information, see [Get big data cluster endpoints](deployment-guidance.md#endpoints).
118118
119119
## Get service details
120120

docs/big-data-cluster/concept-application-deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ When an application is executed, the Kubernetes service for the application prox
4949
## How to work with Application Deployment
5050

5151
The two main interfaces for Application Deployment are:
52-
- [Command line interface `mssqlctl`](big-data-cluster-create-apps.md)
52+
- [Command line interface `azdata`](big-data-cluster-create-apps.md)
5353
- [Visual Studio Code and Azure Data Studio extension](app-deployment-extension.md)
5454

5555
It is also possible for an application to be executed using a RESTful web service. For more information, see [Consume applications on big data clusters](big-data-cluster-consume-apps.md).
@@ -58,7 +58,7 @@ It is also possible for an application to be executed using a RESTful web servic
5858

5959
To learn more about how to create and run applications on SQL Server big data clusters, see the following:
6060

61-
- [Deploy applications using mssqlctl](big-data-cluster-create-apps.md)
61+
- [Deploy applications using azdata](big-data-cluster-create-apps.md)
6262
- [Deploy applications using the App Deploy extension](app-deployment-extension.md)
6363
- [Consume applications on big data clusters](big-data-cluster-consume-apps.md)
6464

docs/big-data-cluster/concept-controller.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ The controller service provides the following core functionality:
3131

3232
## Deploying the controller service
3333

34-
The controller is deployed and hosted in the same Kubernetes namespace where the customer wants to build out a big data cluster. This service is installed by a Kubernetes administrator during cluster bootstrap, using the **mssqlctl** command-line utility. For more information, see [Get started with SQL Server big data clusters](deploy-get-started.md).
34+
The controller is deployed and hosted in the same Kubernetes namespace where the customer wants to build out a big data cluster. This service is installed by a Kubernetes administrator during cluster bootstrap, using the **azdata** command-line utility. For more information, see [Get started with SQL Server big data clusters](deploy-get-started.md).
3535

3636
The buildout workflow will layout on top of Kubernetes a fully functional SQL Server big data cluster that includes all the components described in the [Overview](big-data-cluster-overview.md) article. The bootstrap workflow first creates the controller service, and once this is deployed, the controller service will coordinate the installation and configuration of rest of the services part of master, compute, data, and storage pools.
3737

3838
## Managing the cluster through the controller service
3939

40-
You can manage the cluster through the controller service using either **mssqlctl** commands. If you deploy additional Kubernetes objects like pods into the same namespace, they are not managed or monitored by the controller service. You can also use **kubectl** commands to manage the cluster at the Kubernetes level. For more information, see [Monitoring and troubleshoot SQL Server big data clusters](cluster-troubleshooting-commands.md).
40+
You can manage the cluster through the controller service using either **azdata** commands. If you deploy additional Kubernetes objects like pods into the same namespace, they are not managed or monitored by the controller service. You can also use **kubectl** commands to manage the cluster at the Kubernetes level. For more information, see [Monitoring and troubleshoot SQL Server big data clusters](cluster-troubleshooting-commands.md).
4141

42-
The controller and the Kubernetes objects (stateful sets, pods, secrets, etc.) created for a big data cluster reside in a dedicated Kubernetes namespace. The controller service will be granted permission by the Kubernetes cluster administrator to manage all resources within that namespace. The RBAC policy for this scenario is configured automatically as part of initial cluster deployment using **mssqlctl**.
42+
The controller and the Kubernetes objects (stateful sets, pods, secrets, etc.) created for a big data cluster reside in a dedicated Kubernetes namespace. The controller service will be granted permission by the Kubernetes cluster administrator to manage all resources within that namespace. The RBAC policy for this scenario is configured automatically as part of initial cluster deployment using **azdata**.
4343

44-
### mssqlctl
44+
### azdata
4545

46-
**mssqlctl** is a command-line utility written in Python that enables cluster administrators to bootstrap and manage big data clusters via the REST APIs exposed by the controller service.
46+
**azdata** is a command-line utility written in Python that enables cluster administrators to bootstrap and manage big data clusters via the REST APIs exposed by the controller service.
4747

4848
## Controller service security
4949

0 commit comments

Comments
 (0)