Before getting secrets from the Azure Key Vault make sure you have access to the key vault. Make sure to login or provide correct Azure credential. you can refer this link for getting secret
Or you execute this powershell command Get-AzureKeyVaultSecret -VaultName 'VaultName' -Name 'sceretName'