This sample demonstrates how to manage key vaults in Azure using the Ruby SDK.
On this page
-
If you don't already have it, install Ruby and the Ruby DevKit.
-
If you don't have bundler, install it.
gem install bundler
-
Clone the repository.
git clone https://github.com/sarangan12/azure-monitor-sample.git
-
Install the dependencies using bundle.
cd azure-monitor-sample bundle install
-
Create an Azure service principal either through Azure CLI, PowerShell or the portal.
-
Create a file
.env
from .env_sample file as template. Fill in all the values. -
Run the sample.
bundle exec ruby example.rb