Skip to content
DocsTry Aspire
DocsTry

AzureBicepResourceScope Properties

ClassProperties4 members
Represents the scope associated with the resource.
Gets a value indicating whether the scope targets a resource group.
public bool HasResourceGroup { get; }
Use this to test the scope before reading AzureBicepResourceScope.ResourceGroup, which throws for subscription- and tenant-scoped resources.
Gets a value indicating whether the scope targets the current tenant.
public bool IsTenantScope { get; }
ResourceGroupSection titled ResourceGroupobject
Represents the resource group to encode in the scope.
public object ResourceGroup { get; }
InvalidOperationExceptionThe scope does not target a resource group.
SubscriptionSection titled Subscriptionnullableobject?
Represents the subscription to encode in the scope.
public object? Subscription { get; }