Skip to main content

local_users_keys

Creates, updates, deletes, gets or lists a local_users_keys resource.

Overview

Namelocal_users_keys
TypeResource
Idazure.storage.local_users_keys

Fields

The following fields are returned by SELECT queries:

OK -- Get the local user keys successfully.

NameDatatypeDescription
sharedKeystringAuto generated by the server for SMB authentication.
sshAuthorizedKeysarrayOptional, local user ssh authorized keys for SFTP.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, accountName, subscriptionId, usernameList SSH authorized keys and shared key of the local user.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
accountNamestringThe name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
usernamestringThe name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.

SELECT examples

List SSH authorized keys and shared key of the local user.

SELECT
sharedKey,
sshAuthorizedKeys
FROM azure.storage.local_users_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND username = '{{ username }}' -- required
;