New-AzApiManagementSamplingSetting
Create a new sampling setting for the Diagnostic
Syntax
New-AzApiManagementSamplingSetting
[-SamplingType <String>]
[-SamplingPercentage <Double>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The cmdlet New-AzApiManagementSamplingSetting creates a new sampling setting for the Diagnostic
Examples
Example 1: Create a basic Sampling setting
New-AzApiManagementSamplingSetting -SamplingType fixed -SamplingPercentage 100
SamplingType Percentage
------------ ----------
fixed 100
Creates a sampling setting of Fixed
type with logging for 100% of the requests / responses
Example 2
Create a new sampling setting for the Diagnostic. (autogenerated)
New-AzApiManagementSamplingSetting -SamplingPercentage 100 -SamplingType fixed
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SamplingPercentage
Rate of Sampling for Fixed Rate Sampling. This parameter is optional.
Type: | Nullable<T>[Double] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SamplingType
The Type of Sampling. This parameter is optional.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
PsApiManagementSamplingSetting
Related Links
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure PowerShell