NetworkExtensions.GetAzureFirewalls Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAzureFirewalls(ResourceGroupResource) |
Gets a collection of AzureFirewallResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAzureFirewalls() instead. |
GetAzureFirewalls(SubscriptionResource, CancellationToken) |
Gets all the Azure Firewalls in a subscription.
|
GetAzureFirewalls(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of AzureFirewallResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAzureFirewalls() instead.
public static Azure.ResourceManager.Network.AzureFirewallCollection GetAzureFirewalls (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAzureFirewalls : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.AzureFirewallCollection
<Extension()>
Public Function GetAzureFirewalls (resourceGroupResource As ResourceGroupResource) As AzureFirewallCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of AzureFirewallResources and their operations over a AzureFirewallResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetAzureFirewalls(SubscriptionResource, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets all the Azure Firewalls in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls
- Operation Id: AzureFirewalls_ListAll
- Default Api Version: 2024-03-01
- Resource: AzureFirewallResource
public static Azure.Pageable<Azure.ResourceManager.Network.AzureFirewallResource> GetAzureFirewalls (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetAzureFirewalls : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.AzureFirewallResource>
<Extension()>
Public Function GetAzureFirewalls (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AzureFirewallResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of AzureFirewallResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET