你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzNetworkProfile
获取现有的网络配置文件顶级资源
语法
Get-AzNetworkProfile
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkProfile
-ResourceGroupName <String>
-Name <String>
-ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkProfile
-ResourceId <String>
-ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkProfile
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzNetworkProfile cmdlet 检索现有的网络配置文件顶级资源
示例
示例 1
$networkProfile = Get-AzNetworkProfile -Name np1 -ResourceGroupName rg1
ProvisioningState : Succeeded
ContainerNetworkInterfaces : {}
ContainerNetworkInterfaceConfigurations : {}
ContainerNetworkInterfacesText : []
ContainerNetworkInterfaceConfigurationsText : []
ResourceGroupName : rg1
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/networkProfiles
Tag :
TagsTable :
Name : np1
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1
/providers/Microsoft.Network/networkProfiles/np1
这会检索资源组 rg1 中的网络配置文件 np1
示例 2
$networkProfile = Get-AzNetworkProfile -Name np*
ProvisioningState : Succeeded
ContainerNetworkInterfaces : {}
ContainerNetworkInterfaceConfigurations : {}
ContainerNetworkInterfacesText : []
ContainerNetworkInterfaceConfigurationsText : []
ResourceGroupName : rg1
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/networkProfiles
Tag :
TagsTable :
Name : np1
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1
/providers/Microsoft.Network/networkProfiles/np1
ProvisioningState : Succeeded
ContainerNetworkInterfaces : {}
ContainerNetworkInterfaceConfigurations : {}
ContainerNetworkInterfacesText : []
ContainerNetworkInterfaceConfigurationsText : []
ResourceGroupName : rg1
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/networkProfiles
Tag :
TagsTable :
Name : np2
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1
/providers/Microsoft.Network/networkProfiles/np2
这会检索以“np”开头的网络配置文件
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExpandResource
要扩展的资源引用。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
网络配置文件的名称。
Type: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceGroupName
网络配置文件的资源组名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceId
网络配置文件的 Azure 资源管理器 ID。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输入
输出
相关链接
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈