Package version:

Function parseKeyVaultSecretIdentifier

  • Parses the given Key Vault Secret Id. An example is:

    https://.vault.azure.net/secrets//

    On parsing the above Id, this function returns:

      {
    sourceId: "https://<keyvault-name>.vault.azure.net/secrets/<secret-name>/<unique-version-id>",
    vaultUrl: "https://<keyvault-name>.vault.azure.net",
    version: "<unique-version-id>",
    name: "<secret-name>"
    }

    Parameters

    • id: string

      The Id of the Key Vault Secret.

    Returns KeyVaultSecretIdentifier