How can I install Application Insight for the az command?

I’ve tried all kinds of stuff I’ve found after searching, but I’m stumped and have to ask;)

How do I install application insight?

This is how far I’ve gotten;)

  azure-cli = pkgs.azure-cli.withExtensions (filter (item: isDerivation item) (attrValues (pkgs.azure-cli-extensions // {
    application-insights = pkgs.azure-cli-extensions.application-insights;
  })));

It should be possible without all the lib stuff. I’m assuming you’re using unstable nixpkgs, since azure-cli-extensions.application-insights is not present in 24.05. Something like this?

environment.systemPackages = [
  (pkgs.azure-cli.withExtensions [ pkgs.azure-cli-extensions.application-insights ])
];
1 Like