< Back
New-AzureRmApplicationInsightsContinuousExport
Post
NAME New-AzureRmApplicationInsightsContinuousExport
SYNOPSIS
Create a new application insights continuous export configuration for an application insights resource
SYNTAX
New-AzureRmApplicationInsightsContinuousExport [-ApplicationInsightsComponent] <PSApplicationInsightsComponent> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability |
Performance Counter} -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]
New-AzureRmApplicationInsightsContinuousExport [-ResourceGroupName] <String> [-Name] <String> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability |
Performance Counter} -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]
New-AzureRmApplicationInsightsContinuousExport [-ResourceId] <String> [-Confirm] [-DefaultProfile <IAzureContextContainer>] -DocumentType {Request
| Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability | Performance Counter} -StorageAccountId <String>
-StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
Create a new application insights continuous export configuration for an application insights resource
PARAMETERS
-ApplicationInsightsComponent <PSApplicationInsightsComponent>
Application Insights Component Object.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DocumentType <String[]>
Document types that need exported.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Component Name.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Resource Group Name.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceId <String>
Application Insights Component Resource Id.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-StorageAccountId <String>
Destination Storage Account Id.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-StorageLocation <String>
Destination Storage Location Id.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-StorageSASUri <String>
Destination Storage SAS Uri.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
System.String[]
OUTPUTS
Microsoft.Azure.Commands.ApplicationInsights.Models.PSExportConfiguration
NOTES
Example 1 Create a new continuous export configuration for an application insights resource
PS C:\\> $sastoken = New-AzureStorageContainerSASToken -Name testcontainer -Context $context -ExpiryTime (Get-Date).AddYears(50) -Permission w
PS C:\\> $sasuri = "https://teststorageaccount.blob.core.wi ... tcontainer" + $sastoken
PS C:\\> New-AzureRmApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test"
-DocumentType "Request","Trace", "Custom Event" -StorageAccountId
"/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount"
-StorageLocation sourcecentralus
-StorageSASUri $sasuri
ExportId : jlTFEiBg1rkDXOCIeJQ2mB2TxZg=
StorageName : teststorageaccount
ContainerName : testcontainer
DocumentTypes : Request, Custom Event, Trace
DestinationStorageSubscriptionId : 50359d91-7b9d-4823-85af-eb298a61ba96
DestinationStorageLocationId : sourcecentralus
DestinationStorageAccountId :
/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount
IsEnabled : True
ExportStatus : Preparing
LastSuccessTime :
Create a new application insights continuous export configuration to export "Request" and "Trace" document types to storage contain
"testcontainer" in storage account "teststorageaccount" in resource group "testgroup". The SAS token have to be valid and have write permission to
the container, otherwise continous export feature won't work.If SAS token expired, the continuous export feature will stop working.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... uousexport
SYNOPSIS
Create a new application insights continuous export configuration for an application insights resource
SYNTAX
New-AzureRmApplicationInsightsContinuousExport [-ApplicationInsightsComponent] <PSApplicationInsightsComponent> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability |
Performance Counter} -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]
New-AzureRmApplicationInsightsContinuousExport [-ResourceGroupName] <String> [-Name] <String> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability |
Performance Counter} -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]
New-AzureRmApplicationInsightsContinuousExport [-ResourceId] <String> [-Confirm] [-DefaultProfile <IAzureContextContainer>] -DocumentType {Request
| Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability | Performance Counter} -StorageAccountId <String>
-StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
Create a new application insights continuous export configuration for an application insights resource
PARAMETERS
-ApplicationInsightsComponent <PSApplicationInsightsComponent>
Application Insights Component Object.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DocumentType <String[]>
Document types that need exported.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Component Name.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Resource Group Name.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceId <String>
Application Insights Component Resource Id.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-StorageAccountId <String>
Destination Storage Account Id.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-StorageLocation <String>
Destination Storage Location Id.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-StorageSASUri <String>
Destination Storage SAS Uri.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
System.String[]
OUTPUTS
Microsoft.Azure.Commands.ApplicationInsights.Models.PSExportConfiguration
NOTES
Example 1 Create a new continuous export configuration for an application insights resource
PS C:\\> $sastoken = New-AzureStorageContainerSASToken -Name testcontainer -Context $context -ExpiryTime (Get-Date).AddYears(50) -Permission w
PS C:\\> $sasuri = "https://teststorageaccount.blob.core.wi ... tcontainer" + $sastoken
PS C:\\> New-AzureRmApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test"
-DocumentType "Request","Trace", "Custom Event" -StorageAccountId
"/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount"
-StorageLocation sourcecentralus
-StorageSASUri $sasuri
ExportId : jlTFEiBg1rkDXOCIeJQ2mB2TxZg=
StorageName : teststorageaccount
ContainerName : testcontainer
DocumentTypes : Request, Custom Event, Trace
DestinationStorageSubscriptionId : 50359d91-7b9d-4823-85af-eb298a61ba96
DestinationStorageLocationId : sourcecentralus
DestinationStorageAccountId :
/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount
IsEnabled : True
ExportStatus : Preparing
LastSuccessTime :
Create a new application insights continuous export configuration to export "Request" and "Trace" document types to storage contain
"testcontainer" in storage account "teststorageaccount" in resource group "testgroup". The SAS token have to be valid and have write permission to
the container, otherwise continous export feature won't work.If SAS token expired, the continuous export feature will stop working.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... uousexport