Skip to content
DocsTry Aspire
DocsTry

AzurePublicIPAddressResource Constructors

ClassConstructors1 member
Represents an Azure Public IP Address resource.
Constructor(string, Action<AzureResourceInfrastructure>)Section titled Constructor(string, Action<AzureResourceInfrastructure>)
Represents an Azure Public IP Address resource.
public class AzurePublicIPAddressResource
{
public AzurePublicIPAddressResource(
string name,
Action<AzureResourceInfrastructure> configureInfrastructure)
{
// ...
}
}
namestringThe name of the resource.
configureInfrastructureAction<AzureResourceInfrastructure>Callback to configure the Azure Public IP Address resource.
Use AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties such as DNS labels, zones, or IP version.