Skip to content

Commit faabfab

Browse files
authored
Merge pull request #272 from wastoresh/preview
Use Microsoft.Storage as default KeySource since server behavior change
2 parents 1853d89 + 1893069 commit faabfab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/StorageAccountBaseCmdlet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ protected static Encryption ParseEncryption(EncryptionSupportServiceEnum? Enable
169169
accountEncryption.Services.File = new EncryptionService();
170170
accountEncryption.Services.File.Enabled = false;
171171
}
172-
if (storageEncryption)
173-
{
174-
accountEncryption.KeySource = "Microsoft.Storage";
175-
}
176172
if (keyVaultEncryption)
177173
{
178174
accountEncryption.KeySource = "Microsoft.Keyvault";
179175
accountEncryption.KeyVaultProperties = new KeyVaultProperties(keyName, keyVersion, keyVaultUri);
180176
}
177+
else
178+
{
179+
accountEncryption.KeySource = "Microsoft.Storage";
180+
}
181181
return accountEncryption;
182182
}
183183

0 commit comments

Comments
 (0)