Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
AzureKeyCredential Class
Credential type used for authenticating to an Azure service. It provides the ability to update the key without creating a new client.
Constructor
AzureKeyCredential(key: str)
Parameters
| Name | Description |
|---|---|
|
key
Required
|
The key used to authenticate to an Azure service |
Methods
| update |
Update the key. This can be used when you've regenerated your service key and want to update long-lived clients. |
update
Update the key.
This can be used when you've regenerated your service key and want to update long-lived clients.
update(key: str) -> None
Parameters
| Name | Description |
|---|---|
|
key
Required
|
The key used to authenticate to an Azure service |
Exceptions
| Type | Description |
|---|---|
|
If the key is None, empty, or not a string. |
Attributes
key
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python
Feedback
Was this page helpful?
