New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple CLI commands #27964
Comments
@alexkarcher-msft |
@alexkarcher-msft Thank you very much for the feedback! We're assigning this to the content author so they can update the documentation accordingly. |
@alexkarcher-msft thanks for pointing this out, I will get it added this week. |
Hey, sorry this stayed open so long. We have internally merged the following section to the create resource doc. The change will go-live between 3-4 PM (UTC-7). Thanks again for bringing this gap to our attention: Creating a resource automaticallyPowerShellCreate a new Application Insights resource New-AzApplicationInsights [-ResourceGroupName] <String> [-Name] <String> [-Location] <String> [-Kind <String>]
[-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] ExampleNew-AzApplicationInsights -Kind java -ResourceGroupName testgroup -Name test1027 -location eastus ResultsId : /subscriptions/{subid}/resourceGroups/testgroup/providers/microsoft.insights/components/test1027
ResourceGroupName : testgroup
Name : test1027
Kind : web
Location : eastus
Type : microsoft.insights/components
AppId : 8323fb13-32aa-46af-b467-8355cf4f8f98
ApplicationType : web
Tags : {}
CreationDate : 10/27/2017 4:56:40 PM
FlowType :
HockeyAppId :
HockeyAppToken :
InstrumentationKey : 00000000-aaaa-bbbb-cccc-dddddddddddd
ProvisioningState : Succeeded
RequestSource : AzurePowerShell
SamplingPercentage :
TenantId : {subid} For the full PowerShell documentation for this cmdlet, and to learn how to retrieve the instrumentation key consult the Azure PowerShell documentation. Azure CLI (preview)To access the preview Application Insights Azure CLI commands you first need to run:
If you don't run the Now you can run the following to create your Application Insights resource:
Example
Results
For the full Azure CLI documentation for this command, and to learn how to retrieve the instrumentation key consult the Azure CLI documentation. |
#please-close |
There are two very simple Azure CLI commands to create an app insights instance and get the instrumentation key. I'd love to see those documented here, or in a "CLI Quickstart" sister doc.
From this github thread: Azure/azure-cli#5543
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: