KB0080 - Failed to Locate Secret in Database or Vault

KB0080 - Failed to Locate Secret in Database or Vault

Scope

Users running PowerShell Universal 5.0.16 attempting to run a script as another user based on a new secret PSCredential variable. 

Problem

When attempting to run the script as the user stored in the PSCredential secret, the application reports that it failed to locate the secret in the database. This causes the job to fail. 

Root Cause

The root cause of this issue is that during the creation of the secret variable, the value is not being stored in the vault by the admin console. Since the value is not stored, during the lookup of the secret, it fails to find the value and reports the error. 

Workaround

The workaround for this issue is to set the secret value using the Set Secret Value form. Updating the secret with this dialog will set the value to the vault. 

    • Related Articles

    • KB0051 - Viewing database contents

      Purpose The purpose of this document is to provide steps for viewing the PowerShell Universal database. Process PowerShell Universal v3 and v4 - LiteDB To view the LiteDB database for PowerShell Universal, you can use LiteDB Studio. PowerShell ...
    • "[WARN] Call failed. An error occurred while sending the request." message in all jobs

      Version: Any Root Cause When PowerShell Universal starts a new job, it uses the Management API to retrieve job information from the server. It does this over HTTP and will generate a Read-Only app token for the identity of the user that started or ...
    • KB0047 - CPU Health check failed: Access to the registry key 'Global' is denied.

      Scope This article applies to PowerShell Universal (Kestrel - MSI installer) version 4.0.0 and above [1] on Windows Server. Problem There is a failed CPU health check related to a 'Global' registry key. (above figure shows the PowerShell Universal ...
    • KB - 1008 Tax/VAT Exempt at checkout

      Scope In this article you will learn how to make a tax-free purchase at checkout. Problem How do you remove the Tax/VAT on an order? Impact Orders will then need to be refunded for tax if processed without the tax deducted. Resolution Follow the ...
    • KB0069 - PowerShell Universal Startup Process

      Purpose The purpose of this document is to outline the steps that PowerShell Universal takes when starting up. Process 1. Insert current product version and install date in database Updates the database with a record about the current product version ...