The New-AzVmssVaultCertificateConfig cmdlet specifies the secret that needs to be placed on the Virtual Machine Scale Set (VMSS) virtual machines.
The output of this cmdlet is intended to be used with the Add-AzVmssSecret cmdlet.
Examples
Example 1: Create a Key Vault certificate configuration
This command creates a Key Vault certificate configuration that uses the certificate store named MyCerts located at the specified certificate URL.
Parameters
-CertificateStore
Specifies the certificate store on the virtual machines in the scale set where the certificate is added.
This is only valid for Windows Virtual Machine Scale Sets.
Specifies the URI of a certificate stored in the Key Vault.
It is the base64 encoding of the following JSON Object which is encoded in UTF-8:
{
"data":"<Base64-encoded-certificate>",
"dataType":"pfx",
"password":"<pfx-file-password>"
}
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.