protected override RegeneratedSecret CreateSecretFromKeyring(IReadOnlyList <StorageAccountKey> keyring, StorageAccountKeyConfiguration.StorageKeyTypes keyType) { var key = keyring.First(k => k.KeyName == Translate(keyType)).Value; return(new RegeneratedSecret() { NewSecretValue = key.GetSecureString(), NewConnectionString = $"DefaultEndpointsProtocol=https;AccountName={Configuration.ResourceName};AccountKey={key};EndpointSuffix=core.windows.net".GetSecureString() }); }
protected override string Translate(StorageAccountKeyConfiguration.StorageKeyTypes keyType) => keyType switch {