Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCertificateDistinguishedName

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) WithCertificateDistinguishedName(
storePath string,
distinguishedName string,
) EntraIdApplicationResource

Signature

methodWithCertificateDistinguishedNamebuilder
Adds a certificate credential from the certificate store by distinguished name.
WithCertificateDistinguishedName(
storePath string,
distinguishedName string,
) EntraIdApplicationResource
storePathstringThe certificate store path (e.g., "CurrentUser/My").
distinguishedNamestringThe certificate distinguished name (e.g., "CN=MyCert").
EntraIdApplicationResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: