Need PowerShell warmup script for authenticating an URL using Keyvault secrets authorization and sha516 cryptography

Prabha 236 Reputation points
2021-10-02T16:55:35.417+00:00

Need PowerShell script for authenticating an URL using Keyvault secrets authorization and sha516 cryptography

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,116 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
{count} votes

2 answers

Sort by: Most helpful
  1. kobulloc-MSFT 23,416 Reputation points Microsoft Employee
    2021-10-03T00:48:46.893+00:00

    Hello, @Swabha!

    Is the SHA-516 a hard requirement? This is the list of supported key types, algorithms, and operations for Azure Key Vault:
    https://learn.microsoft.com/en-us/azure/key-vault/keys/about-keys-details

    In PowerShell you'll be primarily leveraging Get-AzureKeyVaultSecret. This is a good write up from Virtual Geek that walks you through the process of using a Key Vault secret identifier url to get the secret value using PowerShell (script included at the bottom):

    http://vcloud-lab.com/entries/microsoft-azure/use-key-vault-secret-identifier-url-to-get-the-secret-value-using-powershell


  2. Limitless Technology 39,356 Reputation points
    2021-10-04T12:00:21.883+00:00

    Hi there,

    The logic of an Azure Keyvault authorization of URL using SHA 512 can be found here
    https://learn.microsoft.com/en-us/azure/key-vault/general/authentication

    This might be helpful for SHA512 Class https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha512?view=net-5.0

    -----------------------------------------------------------------------------------------------------------------

    If the reply is helpful, please Upvote and Accept it as an answer

    0 comments No comments