File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
articles/azure-monitor/app Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,10 @@ armclient PUT /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/
246
246
To set the data retention to 365 days using the template above, run:
247
247
248
248
``` PS
249
- New-AzResourceGroupDeployment -ResourceGroupName "<resource group>" `
250
- -TemplateFile .\template1.json `
251
- -retentionInDays 365 `
252
- -appName myApp
249
+ New-AzResourceGroupDeployment -ResourceGroupName "<resource group>" `
250
+ -TemplateFile .\template1.json `
251
+ -retentionInDays 365 `
252
+ -appName myApp
253
253
```
254
254
255
255
The following script can also be used to change retention. Copy this script to save as ` Set-ApplicationInsightsRetention.ps1 ` .
@@ -596,4 +596,4 @@ Other automation articles:
596
596
* [ Create web tests] ( https://azure.microsoft.com/blog/creating-a-web-test-alert-programmatically-with-application-insights/ )
597
597
* [ Send Azure Diagnostics to Application Insights] ( powershell-azure-diagnostics.md )
598
598
* [ Deploy to Azure from GitHub] ( https://blogs.msdn.com/b/webdev/archive/2015/09/16/deploy-to-azure-from-github-with-application-insights.aspx )
599
- * [ Create release annotations] ( https://github.com/Microsoft/ApplicationInsights-Home/blob/master/API/CreateReleaseAnnotation.ps1 )
599
+ * [ Create release annotations] ( https://github.com/Microsoft/ApplicationInsights-Home/blob/master/API/CreateReleaseAnnotation.ps1 )
You can’t perform that action at this time.
0 commit comments