Skip to content

Commit

Permalink
Remove duplicate code block
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Feb 7, 2025
1 parent 40ed136 commit 66df151
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions docs/security/azure-security-key-vault-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,6 @@ All .NET Aspire Azure resources are subclasses of the <xref:Aspire.Hosting.Azure

:::code language="csharp" source="../snippets/azure/AppHost/Program.ConfigureKeyVaultInfra.cs" id="configure":::

```csharp
builder.AddAzureKeyVault("key-vault")
.ConfigureInfrastructure(infra =>
{
var keyVault = infra.GetProvisionableResources()
.OfType<KeyVaultService>()
.Single();

keyVault.Properties.Sku = new()
{
Family = KeyVaultSkuFamily.A,
Name = KeyVaultSkuName.Premium,
};
keyVault.Properties.EnableRbacAuthorization = true;
keyVault.Tags.Add("ExampleKey", "Example value");
});
```

The preceding code:

- Chains a call to the <xref:Aspire.Hosting.AzureProvisioningResourceExtensions.ConfigureInfrastructure*> API:
Expand Down

0 comments on commit 66df151

Please sign in to comment.