< Back

Set-AzureRmApplicationInsightsContinuousExport

Tue Jan 29, 2019 9:31 pm

NAME Set-AzureRmApplicationInsightsContinuousExport



SYNOPSIS

Update a continuous export configuration in an applciation insights resource





SYNTAX

Set-AzureRmApplicationInsightsContinuousExport [-ApplicationInsightsComponent] <PSApplicationInsightsComponent> [-Confirm] [-DefaultProfile

<IAzureContextContainer>] [-DisableConfiguration] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View |

Dependency | Availability | Performance Counter} -ExportId <String> -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String>

[-WhatIf] [<CommonParameters>]



Set-AzureRmApplicationInsightsContinuousExport [-ResourceGroupName] <String> [-Name] <String> [-Confirm] [-DefaultProfile

<IAzureContextContainer>] [-DisableConfiguration] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View |

Dependency | Availability | Performance Counter} -ExportId <String> -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String>

[-WhatIf] [<CommonParameters>]



Set-AzureRmApplicationInsightsContinuousExport [-ResourceId] <String> [-Confirm] [-DefaultProfile <IAzureContextContainer>]

[-DisableConfiguration] -DocumentType {Request | Exception | Custom Event | Trace | Metric | Page Load | Page View | Dependency | Availability |

Performance Counter} -ExportId <String> -StorageAccountId <String> -StorageLocation <String> -StorageSASUri <String> [-WhatIf] [<CommonParameters>]





DESCRIPTION

Update a continuous export configuration in an applciation 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



-DisableConfiguration [<SwitchParameter>]

Disable continuous export or not.



Required? false

Position? named

Default value False

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



-ExportId <String>

Application Insights Continuous Export Id.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Application Insights 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[] System.Boolean





OUTPUTS

Microsoft.Azure.Commands.ApplicationInsights.Models.PSExportConfiguration







NOTES









Example 1



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:\\> Set-AzureRmApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test"

-DocumentTypes "Request","Trace" -ExportId "jlTFEiBg1rkDXOCIeJQ2mB2TxZg=" -DestinationStorageAccountId

"/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount"

-DestinationStorageLocationId sourcecentralus

-DestinationStorageSASUri $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 :



Update continuous export configuration "jlTFEiBg1rkDXOCIeJQ2mB2TxZg=" of resource "test" in resource group "testgroup" to export "Request" and

"Trace" documents to storage container "testcontainer" in "teststorageaccount".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