Get-AzNetworkProfile
既存のネットワーク プロファイルの最上位リソースを取得します。
構文
GetByResourceNameNoExpandParameterSet (既定)
Get-AzNetworkProfile
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
GetByResourceNameExpandParameterSet
Get-AzNetworkProfile
-ResourceGroupName <String>
-Name <String>
-ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
GetByResourceIdExpandParameterSet
Get-AzNetworkProfile
-ResourceId <String>
-ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
GetByResourceIdNoExpandParameterSet
Get-AzNetworkProfile
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
Get-AzNetworkProfile コマンドレットは、既存のネットワーク プロファイルの最上位リソースを取得します
例
例 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
|
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
-ExpandResource
展開するリソース参照。
パラメーターのプロパティ
| 型: | String
|
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
GetByResourceNameExpandParameterSet
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
GetByResourceIdExpandParameterSet
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-Name
ネットワーク プロファイルの名前。
パラメーターのプロパティ
| 型: | String
|
| 規定値: | None |
| ワイルドカードのサポート: | True |
| DontShow: | False |
| Aliases: | ResourceName |
パラメーター セット
GetByResourceNameNoExpandParameterSet
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-ResourceGroupName
ネットワーク プロファイルのリソース グループ名。
パラメーターのプロパティ
| 型: | String
|
| 規定値: | None |
| ワイルドカードのサポート: | True |
| DontShow: | False |
パラメーター セット
GetByResourceNameNoExpandParameterSet
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-ResourceId
ネットワーク プロファイルの Azure リソース マネージャー ID。
パラメーターのプロパティ
| 型: | String
|
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
GetByResourceIdExpandParameterSet
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
GetByResourceIdNoExpandParameterSet
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。
出力