<PackageReference Include="Azure.Core" Version="1.44.1" />

AzureKeyCredential

Key credential used to authenticate to an Azure Service. It provides the ability to update the key without creating a new client.
using System.ComponentModel; using System.Runtime.CompilerServices; namespace Azure { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class AzureKeyCredential { [EditorBrowsable(EditorBrowsableState.Never)] public string Key { get { string result = default(string); this.Deconstruct(ref result); return result; } private set { this.Update(value); } } public AzureKeyCredential(string key) : this(key) { } } }