When I run `Update-AzVmss` after adding more than one certificate from the same key vault, why do I get an error message?
添加同一个密钥保管库中的多个证书后，运行“Update-AzVmss”时为什么会收到一条错误消息？
This can happen if you try to re-add the same vault instead of using a new vault certificate for the existing source vault. The Add-AzVmssSecret command doesn't work correctly if you're adding more secrets.
To add more secrets from the same key vault, update the following list: $vmss.properties.osProfile.secrets[0].vaultCertificates.
For the expected input structure, see Create or update a virtual machine set.
Find the secret in the Virtual Machine Scale Set object that is in the key vault. Then, add your certificate reference (the URL and the secret store name) to the list associated with the vault.
Note
Currently, you can't remove certificates from VMs by using the Virtual Machine Scale Set API.
New VMs will not have the old certificate. However, VMs that have the certificate, and that are already deployed, do have the old certificate.
如果尝试重新添加同一保管库，而不是使用现有源保管库的新保管库证书，可能会看到此消息。 如果要添加其他机密，Add-AzVmssSecret 命令将无法正常运行。
若要添加同一密钥保管库中的更多机密，请更新以下列表：$vmss.properties.osProfile.secrets[0].vaultCertificates。
对于预期的输入结构，请参阅创建或更新虚拟机集。
在密钥保管库中的虚拟机规模集对象中找到该机密。 然后，将证书引用（URL 以及机密存储名称）添加到与保管库关联的列表中。
注意
目前，不能通过使用虚拟机规模集 API 删除 VM 中的证书。
新的 VM 不具有旧证书。 但是，具有证书的 VM 和已部署的 VM 具有旧证书。