az sql mi key

Manage a SQL Instance's keys.

Commands

az sql mi key create Creates a SQL Instance key.
az sql mi key delete Deletes a SQL Instance key.
az sql mi key list Gets a list of managed instance keys.
az sql mi key show Shows a SQL Instance key.

az sql mi key create

Creates a SQL Instance key.

az sql mi key create --kid
--managed-instance
--resource-group
[--subscription]

Required Parameters

--kid -k

The Azure Key Vault key identifier of the server key. An example key identifier is "https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901".

--managed-instance --mi

Name of the Azure SQL managed instance.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql mi key delete

Deletes a SQL Instance key.

az sql mi key delete --kid
[--ids]
[--managed-instance]
[--resource-group]
[--subscription]

Required Parameters

--kid -k

The Azure Key Vault key identifier of the server key. An example key identifier is "https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901".

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--managed-instance --mi

Name of the Azure SQL managed instance.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql mi key list

Gets a list of managed instance keys.

az sql mi key list [--filter]
[--ids]
[--managed-instance]
[--resource-group]
[--subscription]

Optional Parameters

--filter

An OData filter expression that filters elements in the collection.

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--managed-instance --mi

Name of the Azure SQL managed instance.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql mi key show

Shows a SQL Instance key.

az sql mi key show --kid
[--ids]
[--managed-instance]
[--resource-group]
[--subscription]

Required Parameters

--kid -k

The Azure Key Vault key identifier of the server key. An example key identifier is "https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901".

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--managed-instance --mi

Name of the Azure SQL managed instance.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.