Get Activity Logs with Monitor SDK

This sample demonstrates how to manage key vaults in Azure using the Ruby SDK.

On this page

Run this sample

  1. If you don't already have it, install Ruby and the Ruby DevKit.

  2. If you don't have bundler, install it.

    gem install bundler
    
  3. Clone the repository.

    git clone https://github.com/sarangan12/azure-monitor-sample.git
    
  4. Install the dependencies using bundle.

    cd azure-monitor-sample
    bundle install
    
  5. Create an Azure service principal either through Azure CLI, PowerShell or the portal.

  6. Create a file .env from .env_sample file as template. Fill in all the values.

  7. Run the sample.

    bundle exec ruby example.rb