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>]
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 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ExpandResource
要展開的資源參考。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
網路配置檔的名稱。
類型: | String |
別名: | ResourceName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
-ResourceGroupName
網路配置檔的資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
-ResourceId
網路配置檔的 Azure 資源管理員識別碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |