Module: AzureInfo

Extended by:
AzureInfo
Included in:
AzureInfo
Defined in:
lib/azure_info/configure.rb,
lib/azure_info.rb,
lib/azure_info/base.rb,
lib/azure_info/account.rb,
lib/azure_info/version.rb

Overview

docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest

az configure --defaults location=westus2 group=MyResourceGroup

Defined Under Namespace

Classes: Account, Base, Configure, Error

Constant Summary collapse

VERSION =
"0.1.5"

Instance Method Summary collapse

Instance Method Details

#groupObject Also known as: group_id



10
11
12
# File 'lib/azure_info.rb', line 10

def group
  ENV['ARM_GROUP'] || configure.get("group")
end

#locationObject



15
16
17
# File 'lib/azure_info.rb', line 15

def location
  ENV['ARM_LOCATION'] || configure.get("location") || "eastus"
end

#subscription_idObject Also known as: subscription



19
20
21
# File 'lib/azure_info.rb', line 19

def subscription_id
  ENV['ARM_SUBSCRIPTION_ID'] || .get("id")
end

#tenant_idObject Also known as: tenant



24
25
26
# File 'lib/azure_info.rb', line 24

def tenant_id
  ENV['ARM_TENANT_ID'] || .get("tenantId")
end