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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure PowerShell