From b93dec800b76f5f13e97c9d1fde17d0e91cc0baa Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Fri, 14 Dec 2018 10:41:39 +0100 Subject: [PATCH] add azure api options to azcli custommode (#1276) --- cloud/azure/custom/api.pm | 1 - cloud/azure/custom/azcli.pm | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud/azure/custom/api.pm b/cloud/azure/custom/api.pm index 07b9fa88e..c6836d282 100644 --- a/cloud/azure/custom/api.pm +++ b/cloud/azure/custom/api.pm @@ -151,7 +151,6 @@ sub build_options_for_httplib { $self->{option_results}->{ssl_opt} = $self->{ssl_opt}; $self->{option_results}->{warning_status} = ''; $self->{option_results}->{critical_status} = ''; - $self->{option_results}->{unknown_status} = ''; } sub settings { diff --git a/cloud/azure/custom/azcli.pm b/cloud/azure/custom/azcli.pm index c0ebf0cfe..2213a9026 100644 --- a/cloud/azure/custom/azcli.pm +++ b/cloud/azure/custom/azcli.pm @@ -43,6 +43,9 @@ sub new { $options{options}->add_options(arguments => { "subscription:s" => { name => 'subscription' }, + "tenant:s" => { name => 'tenant' }, + "client-id:s" => { name => 'client_id' }, + "client-secret:s" => { name => 'client_secret' }, "timeframe:s" => { name => 'timeframe' }, "interval:s" => { name => 'interval' }, "aggregation:s@" => { name => 'aggregation' },