AzureSubnetResource
Class net8.0
Represents an Azure Subnet resource.
namespace Aspire.Hosting.Azure;
public class AzureSubnetResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.AzureVirtualNetworkResource>{ // ...} ResourceIResourceIResourceWithParentIResourceWithParent<AzureVirtualNetworkResource>
7 members
Remarks
Section titled Remarks Use
AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties. Constructors2
Section titled ConstructorsAzureSubnetResource(string, string, string, AzureVirtualNetworkResource) Initializes a new instance of the
AzureSubnetResource class. AzureSubnetResource(string, string, ParameterResource, AzureVirtualNetworkResource) Initializes a new instance of the
AzureSubnetResource class with a parameterized address prefix. Properties5
Section titled PropertiesAddressPrefixgetstring? Gets the address prefix for the subnet (e.g., "10.0.1.0/24"), or
null if the address prefix is provided via a ApplicationModel.ParameterResource. AddressPrefixParametergetParameterResource? Gets the parameter resource containing the address prefix for the subnet, or
null if the address prefix is provided as a literal string. IdgetBicepOutputReference Gets the subnet Id output reference.
Parentget Gets the parent Azure Virtual Network resource.
SubnetNamegetstring Gets the subnet name.