Class CertificateReference
java.lang.Object
com.microsoft.azure.management.batch.CertificateReference
A reference to a certificate to be installed on compute nodes in a pool.
This must exist inside the same account as the pool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id value.Get the default value is currentUser.Get this property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference).Get the visibility value.Set the id value.withStoreLocation
(CertificateStoreLocation storeLocation) Set the default value is currentUser.withStoreName
(String storeName) Set this property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference).withVisibility
(List<CertificateVisibility> visibility) Set the visibility value.
-
Constructor Details
-
CertificateReference
public CertificateReference()
-
-
Method Details
-
id
Get the id value.- Returns:
- the id value
-
withId
Set the id value.- Parameters:
id
- the id value to set- Returns:
- the CertificateReference object itself.
-
storeLocation
Get the default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. Possible values include: 'CurrentUser', 'LocalMachine'.- Returns:
- the storeLocation value
-
withStoreLocation
Set the default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. Possible values include: 'CurrentUser', 'LocalMachine'.- Parameters:
storeLocation
- the storeLocation value to set- Returns:
- the CertificateReference object itself.
-
storeName
Get this property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.- Returns:
- the storeName value
-
withStoreName
Set this property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.- Parameters:
storeName
- the storeName value to set- Returns:
- the CertificateReference object itself.
-
visibility
Get the visibility value.- Returns:
- the visibility value
-
withVisibility
Set the visibility value.- Parameters:
visibility
- the visibility value to set- Returns:
- the CertificateReference object itself.
-