Get-AzNetworkProfile
取得現有的網路配置檔最上層資源
Syntax
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>]
Description
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 資源管理員識別碼。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸入
輸出
相關連結
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應