你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzNetworkFabricInternetGatewayRule
Gets an Internet Gateway Rule resource.
Syntax
Get-AzNetworkFabricInternetGatewayRule
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzNetworkFabricInternetGatewayRule
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzNetworkFabricInternetGatewayRule
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzNetworkFabricInternetGatewayRule
-InputObject <IManagedNetworkFabricIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets an Internet Gateway Rule resource.
Examples
Example 1: List Internet Gateway Rules by Subscription
Get-AzNetworkFabricInternetGatewayRule -SubscriptionId $subscriptionId
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ----
eastus2euap nfcfab3-4-1-GF1-infra-system 09/21/2023 08:47:10 <identity> Application 09/21/2023 08:47:22 <identity> App…
eastus2euap nfa-tool-ts-GA-IGwRule081023 08/10/2023 11:05:30 <identity> User 09/04/2023 15:35:53 <identity> App…
eastus2euap nfcfab1-4-1-BF-infra-system 09/22/2023 02:33:21 <identity> Application 09/22/2023 02:33:29 <identity> App…
eastus controller092123-infra-system 09/21/2023 12:14:52 <identity> Application 09/21/2023 12:15:03 <identity> App…
This command lists all the Internet Gateway Rules under the given Subscription.
Example 2: List Internet Gateway Rules by Resource Group
Get-AzNetworkFabricInternetGatewayRule -ResourceGroupName $resourceGroupName
Annotation Id
---------- --
/subscriptions/<identity>/resourceGroups/nfa-tool-ts-powershell-rg092123/providers/Microsoft.ManagedNetworkFabric/InternetGatewayRules/controller092123…
This command lists all the Internet Gateway Rules under the given Resource Group.
Example 3: Get Internet Gateway Rule
Get-AzNetworkFabricInternetGatewayRule -Name $name -ResourceGroupName $resourceGroupName
Annotation Id
---------- --
/subscriptions/<identity>/resourceGroups/nfa-tool-ts-powershell-rg092123/providers/Microsoft.ManagedNetworkFabric/InternetGatewayRules/controller092123…
This command gets details of the given Internet Gateway Rule.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter
Type: | IManagedNetworkFabricIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Name of the Internet Gateway rule.
Type: | String |
Aliases: | InternetGatewayRuleName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription. The value must be an UUID.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |