AzureAppConfigurationExtensions
Class static net10.0
Provides extension methods for adding the Azure AppConfiguration resources to the application model.
namespace Aspire.Hosting;
public static class AzureAppConfigurationExtensions{ // ...} 6 members
Methods6
Section titled MethodsAddAzureAppConfiguration(IDistributedApplicationBuilder, string)extensionIResourceBuilder<AzureAppConfigurationResource> Adds an Azure App Configuration resource to the application model.
RunAsEmulator(IResourceBuilder<AzureAppConfigurationResource>, Action<IResourceBuilder<AzureAppConfigurationEmulatorResource>>)extensionIResourceBuilder<AzureAppConfigurationResource> Configures an Azure App Configuration resource to be emulated. This resource requires an
AzureAppConfigurationResource to be added to the application model. WithDataBindMount(IResourceBuilder<AzureAppConfigurationEmulatorResource>, string?)extensionIResourceBuilder<AzureAppConfigurationEmulatorResource> Adds a bind mount for the storage of an Azure App Configuration emulator resource.
WithDataVolume(IResourceBuilder<AzureAppConfigurationEmulatorResource>, string?)extensionIResourceBuilder<AzureAppConfigurationEmulatorResource> Adds a named volume for the data folder to an Azure App Configuration emulator resource.
WithHostPort(IResourceBuilder<AzureAppConfigurationEmulatorResource>, int?)extensionIResourceBuilder<AzureAppConfigurationEmulatorResource> Configures the host port for the Azure App Configuration emulator is exposed on instead of using randomly assigned port.
WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<AzureAppConfigurationResource>, AppConfigurationBuiltInRole[])extensionIResourceBuilder<T> Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure App Configuration resource. This replaces the default role assignments for the resource.