New-AzApiManagementPipelineDiagnosticSetting
Diagnostische instellingen maken voor inkomende/uitgaande HTTP-berichten naar de gateway.
Syntaxis
New-AzApiManagementPipelineDiagnosticSetting
[-Request <PsApiManagementHttpMessageDiagnostic>]
[-Response <PsApiManagementHttpMessageDiagnostic>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De cmdlet New-AzApiManagementPipelineDiagnosticSetting maakt de diagnostische instellingen voor binnenkomende/uitgaande HTTP-berichten naar de gateway.
Voorbeelden
Voorbeeld 1
$httpMessageDiagnostic = New-AzApiManagementHttpMessageDiagnostic -HeadersToLog 'Content-Type', 'UserAgent' -BodyBytesToLog 100
New-AzApiManagementPipelineDiagnosticSetting -Request $httpMessageDiagnostic -Response $httpMessageDiagnostic
Request Response
------- --------
Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic
Maak een pijplijndiagnose die moet worden gebruikt in FrontEnd of Back-end in de diagnostische entiteit.
Parameters
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Request
Diagnostische instelling voor Aanvraag. Deze parameter is optioneel.
Type: | PsApiManagementHttpMessageDiagnostic |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Response
Diagnostische instelling voor Antwoord. Deze parameter is optioneel.
Type: | PsApiManagementHttpMessageDiagnostic |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
None
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell