For the complete documentation index, see llms.txt. This page is also available as Markdown.

Microsoft SQL Server (MSSQL) or Azure SQL

Create a Secret for securing Microsoft SQL Server or Azure SQL credentials.

Prerequisites

To create a Secret for securing Microsoft SQL Server (MSSQL) or Azure SQL credentials, you need the following information.

See Secret: Access control for who can create a Secret and how access to it is managed.

Source system requirements

  • Username: The MSSQL username used to authenticate and access your MSSQL database. Get this from the MSSQL database admin.

  • Password: The password for the MSSQL username. Get this from the MSSQL database admin, or retrieve it securely if already set.

Create a Secret for securing MSSQL or Azure SQL credentials

MSSQL is a SQL database. Azure SQL is the cloud-based managed version of MSSQL, optimized for cloud scalability, automated maintenance, and high availability. MSSQL requires manual setup and management, while Azure SQL is a fully managed service.

To create an MSSQL or Azure SQL Secret in DataOS, you need access to the DataOS Command Line Interface (CLI) and the required permissions.

Step 1: Create a manifest file

Create a manifest file with the configuration details for your MSSQL Secret.

name: ${{mssql-secret-name}}
version: v2alpha
type: secret
tags:
  - ${{tag-1}}
  - ${{tag-2}}
description: "Credentials for mssql depot"
layer: user
secret:
  type: key-value
  data:
    username: ${{mssql-username}}
    password: ${{mssql-password}}

For more information about each attribute, refer to the configurations section.

Step 2: Apply the manifest

Use the apply command to create the MSSQL Secret in DataOS.

Example Usage:

Step 3: Validate the Secret

Use the get command to verify the MSSQL Secret in DataOS.

Expected Output:

To list all Secrets in the DataOS environment, run the following command.

Expected Output:

Delete the Secret

To delete the MSSQL Secret, use one of the following commands:

Specify the Resource type and Secret name in the delete command.

Example Usage:

Last updated

Was this helpful?