EntraIdApplicationResource Methods
ClassMethods3 members
A resource that represents a Microsoft Entra ID application registration.
GetBicepTemplateFile(string?, bool) Section titled GetBicepTemplateFile(string?, bool)overrideBicepTemplateFile Gets the path to the bicep file. If the template is a string or embedded resource, it will be written to a temporary file.
public class EntraIdApplicationResource{ public override BicepTemplateFile GetBicepTemplateFile( string? directory = null, bool deleteTemporaryFileOnDispose = true) { // ... }}Parameters
directorystring?optionalThe directory where the bicep file will be written to (if it's a temporary file)deleteTemporaryFileOnDispose booloptionalA boolean that determines if the file should be deleted on disposal of the Azure.BicepTemplateFile .Returns
BicepTemplateFile A Azure.BicepTemplateFile that represents the bicep file.Exceptions
InvalidOperationException Get the bicep template as a string. Does not write to disk.
public class EntraIdApplicationResource{ public override string GetBicepTemplateString() { // ... }} Gets an expression for the full URI of one of this registration's scopes, such as
api://{clientId}/access_as_user . public class EntraIdApplicationResource{ public ReferenceExpression GetScopeUri( string scopeName) { // ... }}Parameters
scopeName stringThe name of a scope added with WithScope .Returns
ReferenceExpression An expression that resolves when the registration's application ID URI is known.Exceptions
ArgumentExceptionThe registration does not expose a scope with that name.InvalidOperationExceptionThe registration is an existing registration without an application ID URI.Remarks
Clients request the full URI as the token scope, for example in Microsoft.Identity.Web's
DownstreamApis configuration.