az sql mi-arc
Note
This reference is part of the arcdata extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az sql mi-arc command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage SQL managed instances for Arc.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az sql mi-arc config |
Configuration commands. |
Extension | Preview |
| az sql mi-arc config add |
Add a value for a json path in a config file. |
Extension | Preview |
| az sql mi-arc config init |
Initializes the CRD and specification files for a SQL managed instance. |
Extension | Preview |
| az sql mi-arc config patch |
Patches a config file based on a json patch file. |
Extension | Preview |
| az sql mi-arc config remove |
Remove a value for a json path in a config file. |
Extension | Preview |
| az sql mi-arc config replace |
Replace a value for a json path in a config file. |
Extension | Preview |
| az sql mi-arc create |
Create a SQL managed instance. |
Extension | Preview |
| az sql mi-arc delete |
Delete a SQL managed instance. |
Extension | Preview |
| az sql mi-arc edit |
Edit the configuration of a SQL managed instance. |
Extension | Preview |
| az sql mi-arc endpoint |
View and manage SQL endpoints. |
Extension | Preview |
| az sql mi-arc endpoint list |
List the SQL endpoints. |
Extension | Preview |
| az sql mi-arc list |
List SQL managed instances. |
Extension | Preview |
| az sql mi-arc show |
Show the details of a SQL managed instance. |
Extension | Preview |
az sql mi-arc create
Command group 'sql mi-arc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a SQL managed instance.
To set the password of the SQL managed instance, please set the environment variable AZDATA_PASSWORD.
az sql mi-arc create --name
[--cores-limit]
[--cores-request]
[--memory-limit]
[--memory-request]
[--namespace]
[--no-external-endpoint]
[--no-wait]
[--path]
[--replicas]
[--storage-class-backups]
[--storage-class-data]
[--storage-class-datalogs]
[--storage-class-logs]
[--volume-size-backups]
[--volume-size-data]
[--volume-size-datalogs]
[--volume-size-logs]
Examples
Create a SQL managed instance.
az sql mi-arc create -n sqlmi1
Create a SQL managed instance with 3 replicas in HA scenario.
az sql mi-arc create -n sqlmi2 --replicas 3
Required Parameters
The name of the SQL managed instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The cores limit of the managed instance as an integer.
The request for cores of the managed instance as an integer.
The limit of the capacity of the managed instance as an integer.
The request for the capcity of the managed instance as an integer amount of memory in GBs.
Namespace where the SQL managed instance is to be deployed. If no namespace is specified, then the namespace defined in the kubeconfig will be used.
If specified, no external service will be created. Otherwise, an external service will be created using the same service type as the data controller.
If given, the command will not wait for the instance to be in a ready state before returning.
| Property | Value |
|---|---|
| Default value: | False |
The path to the azext_arcdata file for the SQL managed instance json file.
This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purpose. Allowed values are '3' or '1' with default of '1'.
The storage class to be used for backups (/var/opt/mssql/backups). If no value is specified, then no storage class will be specified, which will result in Kubernetes using the default storage class.
The storage class to be used for data (.mdf). If no value is specified, then no storage class will be specified, which will result in Kubernetes using the default storage class.
The storage class to be used for database logs (.ldf). If no value is specified, then no storage class will be specified, which will result in Kubernetes using the default storage class.
The storage class to be used for logs (/var/log). If no value is specified, then no storage class will be specified, which will result in Kubernetes using the default storage class.
The size of the storage volume to be used for backups as a positive number followed by Ki (kilobytes), Mi (megabytes), or Gi (gigabytes).
The size of the storage volume to be used for data as a positive number followed by Ki (kilobytes), Mi (megabytes), or Gi (gigabytes).
The size of the storage volume to be used for data logs as a positive number followed by Ki (kilobytes), Mi (megabytes), or Gi (gigabytes).
The size of the storage volume to be used for logs as a positive number followed by Ki (kilobytes), Mi (megabytes), or Gi (gigabytes).
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az sql mi-arc delete
Command group 'sql mi-arc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a SQL managed instance.
az sql mi-arc delete --name
[--namespace]
Examples
Delete a SQL managed instance.
az sql mi-arc delete -n sqlmi1
Required Parameters
The name of the SQL managed instance to be deleted.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Namespace where the SQL managed instance is to be deployed. If no namespace is specified, then the namespace defined in the kubeconfig will be used.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az sql mi-arc edit
Command group 'sql mi-arc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Edit the configuration of a SQL managed instance.
az sql mi-arc edit --name
[--cores-limit]
[--cores-request]
[--memory-limit]
[--memory-request]
[--namespace]
[--no-wait]
[--path]
Examples
Edit the configuration of a SQL managed instance.
az sql mi-arc edit --path ./spec.json -n sqlmi1
Required Parameters
The name of the SQL managed instance that is being edited. The name under which your instance is deployed cannot be changed.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The cores limit of the managed instance as an integer.
The request for cores of the managed instance as an integer.
The limit of the capacity of the managed instance as an integer.
The request for the capcity of the managed instance as an integer amount of memory in GBs.
Namespace where the SQL managed instance is to be deployed. If no namespace is specified, then the namespace defined in the kubeconfig will be used.
If given, the command will not wait for the instance to be in a ready state before returning.
| Property | Value |
|---|---|
| Default value: | False |
The path to the azext_arcdata file for the SQL managed instance json file.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az sql mi-arc list
Command group 'sql mi-arc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List SQL managed instances.
az sql mi-arc list [--namespace]
Examples
List SQL managed instances.
az sql mi-arc list
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Namespace where the SQL managed instance is to be deployed. If no namespace is specified, then the namespace defined in the kubeconfig will be used.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az sql mi-arc show
Command group 'sql mi-arc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show the details of a SQL managed instance.
az sql mi-arc show --name
[--namespace]
[--path]
Examples
Show the details of a SQL managed instance.
az sql mi-arc show -n sqlmi1
Required Parameters
The name of the SQL managed instance to be shown.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Namespace where the SQL managed instance is to be deployed. If no namespace is specified, then the namespace defined in the kubeconfig will be used.
A path where the full specification for the SQL managed instance should be written. If omitted, the specification will be written to standard output.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |