https://pulumi.com logo
#typescript
Title
# typescript
g

gorgeous-elephant-23271

12/30/2020, 6:34 PM
Copy code
const secretData = pulumi.all([acr.loginServer, servicePrincipal.id, password])
  .apply(([loginServer, servicePrincipal, servicePrincipalPassword]) => {
    return {
      [loginServer]: {
        username: servicePrincipal,
        password: servicePrincipalPassword
      }
    }
  })

const encoded = encode(JSON.stringify(secretData))