根据 Azure python SDK for SecurityRule 类的定义:
SecurityRule(protocol, source_address_prefix, destination_address_prefix, access, direction, id=None, description=None, source_port_range=None, destination_port_range=None, source_address_prefixes=None, destination_address_prefixes=None, source_port_ranges=None, destination_port_ranges=None, priority=None, provisioning_state=None, name=None, etag=None)
使用source_address_prefixes
and destination_port_ranges
,我们应该能够配置 CIDRS 或 port_ranges 的列表,但我找不到检查配置是否在的方法。
门户和“获取”都不显示前缀或范围。