如何将密钥从Excel文件导入到Azure密钥库



我想在Azure的密钥库中添加/更新大约50个密钥。是否有一种方法可以使用Excel文件添加/更新这些密钥,然后通过powershell脚本进行部署?

答案是"是"。

  1. 使用Powershell读取Excel:在Powershell中读取Excel表
  2. 使用Powershell导入密钥:https://www.c-sharpcorner.com/article/working-with-azure-key-vault-using-azure-powershell/#:~:text=You%20can%20create%20or%20import%20key%20%28s%29%20in,key%20in%20software%20in%20the%20Key%20Vault%20service.