# AzureBicepResourceScope Constructors

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [AzureBicepResourceScope](/reference/api/csharp/aspire.hosting.azure/azurebicepresourcescope.md)
- Kind: `Constructors`
- Members: `2`

Represents the scope associated with the resource.

## AzureBicepResourceScope(object)

- Name: `Constructor(object)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureBicepResourceScope.cs#L10-L25)

Represents the scope associated with the resource.

```csharp
public sealed class AzureBicepResourceScope
{
    public AzureBicepResourceScope(
        object resourceGroup)
    {
        // ...
    }
}
```

## Parameters

- `resourceGroup` (`object`)
  The name of the existing resource group.

## AzureBicepResourceScope(object, object)

- Name: `Constructor(object, object)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureBicepResourceScope.cs#L17-L20)

Initializes a new instance of the [AzureBicepResourceScope](/reference/api/csharp/aspire.hosting.azure/azurebicepresourcescope.md) class.

```csharp
public sealed class AzureBicepResourceScope
{
    public AzureBicepResourceScope(
        object resourceGroup,
        object subscription)
    {
        // ...
    }
}
```

## Parameters

- `resourceGroup` (`object`)
  The name of the existing resource group.
- `subscription` (`object`)
  The subscription identifier associated with the resource group.
