Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithOwners

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) WithOwners(ownerObjectId any) EntraIdApplicationResource

Signature

methodWithOwnersbuilder
Appends an owner to both the application registration and service principal.
WithOwners(ownerObjectId any) EntraIdApplicationResource
ownerObjectIdanyThe directory object GUID of a user or service principal, as a literal or parameter.
EntraIdApplicationResource

The registration builder.

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

Applies to

This method applies to the following types: