Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 772 Bytes

File metadata and controls

25 lines (16 loc) · 772 Bytes

Working with SecretStore

Start with Microsoft's SecretStore

If you need to retrieve an API key and submit it as plain text.

$vrkdApiKey = Get-Secret -Name VrkdApiKey -AsPlainText
Connect-Verkada -x_api_key $vrkdApiKey

#or

Connect-Verkada -x_api_key (Get-Secret -Name VrkdApiKey -AsPlainText)

If you need to retrieve a user password and submit it as a SecureString.

$vrkdUsrPwd = Get-Secret -Name VrkdUsrPwd
Connect-Verkada -org_id [your_orgId] -UserName [your_username] -MyPwd $vrkdUsrPwd

#or

Connect-Verkada -org_id [your_orgId] -UserName [your_username] -MyPwd (Get-Secret -Name VrkdUsrPwd)