AzureSecurityRule
Classsealednet10.0
Represents a security rule configuration for an Azure Network Security Group.
namespace Aspire.Hosting.Azure;
public sealed class AzureSecurityRule{ // ...}13 members
Remarks
Section titled Remarks Security rules control inbound and outbound network traffic for subnets associated with the Network Security Group. Rules are evaluated in priority order, with lower numbers having higher priority.
Constructors1
Section titled ConstructorsProperties12
Section titled PropertiesDestinationAddressPrefix get; setstring Gets or sets the destination address prefix. Defaults to "*" (any).
ReferenceExpression? Gets or sets a
ApplicationModel.ReferenceExpression whose value is resolved at deploy time and used as the destination address prefix for the rule. Takes precedence over AzureSecurityRule.DestinationAddressPrefix . DestinationPortRange get; setstring Gets or sets the destination port range. Use "*" for any, or a range like "80-443".
Nameget; setstring Gets or sets the name of the security rule. This name must be unique within the Network Security Group.
Priorityget; setint Gets or sets the priority of the rule. Valid values are between 100 and 4096. Lower numbers have higher priority.
SourceAddressPrefixReference get; setReferenceExpression? Gets or sets a
ApplicationModel.ReferenceExpression whose value is resolved at deploy time and used as the source address prefix for the rule. Takes precedence over AzureSecurityRule.SourceAddressPrefix .