VaultCertificate Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
VaultCertificate() |
Initializes a new instance of the VaultCertificate class. |
VaultCertificate(String, String) |
Initializes a new instance of the VaultCertificate class. |
VaultCertificate()
Initializes a new instance of the VaultCertificate class.
public VaultCertificate ();
Public Sub New ()
Applies to
VaultCertificate(String, String)
Initializes a new instance of the VaultCertificate class.
public VaultCertificate (string certificateUrl = default, string certificateStore = default);
new Microsoft.Azure.Management.Compute.Models.VaultCertificate : string * string -> Microsoft.Azure.Management.Compute.Models.VaultCertificate
Public Sub New (Optional certificateUrl As String = Nothing, Optional certificateStore As String = Nothing)
Parameters
- certificateUrl
- String
This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} <br> To install certificates on a virtual machine it is recommended to use the Azure Key Vault virtual machine extension for Linux or the Azure Key Vault virtual machine extension for Windows.
- certificateStore
- String
For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.