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)
{
// ...
}
}
directorystring?optionalThe directory where the bicep file will be written to (if it's a temporary file)
deleteTemporaryFileOnDisposebooloptionalA boolean that determines if the file should be deleted on disposal of the Azure.BicepTemplateFile.
BicepTemplateFileA Azure.BicepTemplateFile that represents the bicep file.
InvalidOperationException
GetBicepTemplateStringSection titled GetBicepTemplateStringoverridestring
Get the bicep template as a string. Does not write to disk.
public class EntraIdApplicationResource
{
public override string GetBicepTemplateString()
{
// ...
}
}
GetScopeUri(string)Section titled GetScopeUri(string)ReferenceExpression
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)
{
// ...
}
}
scopeNamestringThe name of a scope added with WithScope.
ReferenceExpressionAn expression that resolves when the registration's application ID URI is known.
ArgumentExceptionThe registration does not expose a scope with that name.
InvalidOperationExceptionThe registration is an existing registration without an application ID URI.
Clients request the full URI as the token scope, for example in Microsoft.Identity.Web's DownstreamApis configuration.