Forum Discussion
Rambo363636
Aug 20, 2024Brass Contributor
Powershell error with the below code
Hi Champions, Can someone please help me with the below powershell code which i want to upload the key vault secrets excel csv file to azure key vault. But it is giving below error. $keyVault...
- Aug 26, 2024
Replace the following existing line:
$secretName = $row.$secretNameWith:
$secretName = ConvertTo-SecureString -AsPlainText -String $row.$secretName -Force;The error's telling you that Set-AzKeyValutSecret wants a secure string, not a plain text string.
Cheers,
Lain
Rambo363636
Aug 27, 2024Brass Contributor
LainRobertson oliwer_sundgren
Hi Lain & Oliwer
I have edited and ran the below code and now i get the below error.
Please advise the workaround.
Looking forward to hear from you.
Regards,
Rambo
LainRobertson
Aug 27, 2024Silver Contributor
The error is telling you that the values for Secretvalue in the XLSX may only contain:
- Numbers (0-9);
- Lowercase letters (a-z);
- Uppercase letters (A-Z);
- The minus/hyphen/dash symbol (-).
Cheers,
Lain