Skip to content

Commit aa50fd5

Browse files
author
Kapil Jain
committed
Fixing Key Vault PS (get/set secret) APIs to work irrespective of the case of AzureKeyVaultDnsSuffix (property of AzureRmEnvironment).
1 parent 0ca7a49 commit aa50fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault/Models/VaultUriHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private Uri CreateAndValidateVaultUri(string vaultAddress)
5050
throw new ArgumentException(string.Format(KeyVaultProperties.Resources.InvalidVaultUri, vaultAddress, this.KeyVaultDnsSuffix));
5151

5252
if (vaultUri.HostNameType != UriHostNameType.Dns ||
53-
!vaultUri.Host.EndsWith(this.KeyVaultDnsSuffix))
53+
!vaultUri.Host.EndsWith(this.KeyVaultDnsSuffix, StringComparison.OrdinalIgnoreCase))
5454
throw new ArgumentException(string.Format(KeyVaultProperties.Resources.InvalidVaultUri, vaultAddress, this.KeyVaultDnsSuffix));
5555

5656
return vaultUri;

0 commit comments

Comments
 (0)