# AzureKeyVaultSecretResource Constructors

- Package: [Aspire.Hosting.Azure.KeyVault](/reference/api/csharp/aspire.hosting.azure.keyvault.md)
- Type: [AzureKeyVaultSecretResource](/reference/api/csharp/aspire.hosting.azure.keyvault/azurekeyvaultsecretresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure Key Vault Secret. Initializes a new instance of the [AzureKeyVaultSecretResource](/reference/api/csharp/aspire.hosting.azure.keyvault/azurekeyvaultsecretresource.md) class.

## AzureKeyVaultSecretResource(string, string, AzureKeyVaultResource, object)

- Name: `Constructor(string, string, AzureKeyVaultResource, object)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultSecretResource.cs#L18-L35)

Represents an Azure Key Vault Secret. Initializes a new instance of the [AzureKeyVaultSecretResource](/reference/api/csharp/aspire.hosting.azure.keyvault/azurekeyvaultsecretresource.md) class.

```csharp
public class AzureKeyVaultSecretResource
{
    public AzureKeyVaultSecretResource(
        string name,
        string secretName,
        AzureKeyVaultResource parent,
        object value)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `secretName` (`string`)
- `parent` ([AzureKeyVaultResource](/reference/api/csharp/aspire.hosting.azure.keyvault/azurekeyvaultresource.md))
- `value` (`object`)

## Remarks

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.
