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; }Remarks
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; } Represents the resource group to encode in the scope.
public object ResourceGroup { get; }Exceptions
InvalidOperationExceptionThe scope does not target a resource group. Represents the subscription to encode in the scope.
public object? Subscription { get; }