Look at Automate Azure Application Insight resources using PowerShell and New-AzureRmApplicationInsightsKeyApiKey for more details.
1 2 3 4 5 6 7 8 9 10 | Install-Module AzureRM.ApplicationInsights -force -verbose -scope CurrentUser Import-Module AzureRM.ApplicationInsights $resourcegroupname ='rg_func****' $aicomponentname ='func****' $permissions = @("ReadTelemetry", "WriteAnnotations") $apikeydescription = 'testapikey' New-AzureRmApplicationInsightsApiKey -ResourceGroupName $resourcegroupname -Name $aicomponentname -Description $apikeydescription -Permissions $permissions |
No comments:
Post a Comment