你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureNamedKeyCredential Class

Credential type used for working with any service needing a named key that follows patterns established by the other credential types.

Constructor

AzureNamedKeyCredential(name: str, key: str)

Parameters

Name Description
name
Required
str

The name of the credential used to authenticate to an Azure service.

key
Required
str

The key used to authenticate to an Azure service.

Methods

update

Update the named key credential.

Both name and key must be provided in order to update the named key credential. Individual attributes cannot be updated.

update

Update the named key credential.

Both name and key must be provided in order to update the named key credential. Individual attributes cannot be updated.

update(name: str, key: str) -> None

Parameters

Name Description
name
Required
str

The name of the credential used to authenticate to an Azure service.

key
Required
str

The key used to authenticate to an Azure service.

Attributes

named_key

The value of the configured name.

Returns

Type Description
<xref:AzureNamedKey>

The value of the configured name.