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

Application Insights resources #5543

Open
rcarmo opened this Issue Feb 10, 2018 · 8 comments

Comments

Projects
None yet
8 participants
@rcarmo
Copy link
Member

rcarmo commented Feb 10, 2018

Is there a roadmap for creating App Insights resources via the CLI without resorting to resource create?

@rcarmo

This comment has been minimized.

Copy link
Member

rcarmo commented Feb 10, 2018

For the record, this is how I'm doing it now. But being able to do this in a cleaner way and also having a command to create and retrieve application instrumentation keys would be nice:

	az resource create \
		--resource-group $RESOURCE_GROUP \
		--resource-type "Microsoft.Insights/components" \
		--name $NAMESPACE_PREFIX-appinsights \
		--location $PRIMARY_LOCATION \
		--properties '{"ApplicationId":"facerecognition","Application_Type":"other", "Flow_Type":"Redfield", "Request_Source":"IbizaAIExtension"}'
@tjprescott

This comment has been minimized.

Copy link
Member

tjprescott commented Feb 12, 2018

Thanks for your interest @rcarmo.

cc/ @mayurid @twitchax

@kizotheitguy

This comment has been minimized.

Copy link

kizotheitguy commented Aug 9, 2018

Thanks for the command..
The below should help retrieve application instrumentation keys

az resource show -g $RESOURCEGROUPNAME -n $APPLICATION_NAME --resource-type "Microsoft.Insights/components" --query properties.InstrumentationKey
@Dave76

This comment has been minimized.

Copy link

Dave76 commented Nov 15, 2018

Thanks for the tips, but any ETA on when there will be an az insights cli command?

@Jarlotee

This comment has been minimized.

Copy link

Jarlotee commented Nov 15, 2018

Does anyone know how to create an API key through the CLI?

@joshgav

This comment has been minimized.

Copy link
Member

joshgav commented Nov 16, 2018

cc @nikmd23, this would be helpful for programmatically setting up an app insights space and referencing the instrumentation key.

@arjenbloemsma

This comment has been minimized.

Copy link

arjenbloemsma commented Nov 17, 2018

This does work. However, when I "connect" the resulting Application Insights to an app service (function app) by using the instrumentation key the Application Map seems not to work. Any ideas on that?

@nikmd23

This comment has been minimized.

Copy link

nikmd23 commented Nov 17, 2018

I've looped in the right people at AppInsights to see this thread!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment