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
Defined Under Namespace
Classes: Account, Base, Configure, Error
Constant Summary
collapse
- VERSION =
"0.1.5"
Instance Method Summary
collapse
Instance Method Details
#group ⇒ Object
Also known as:
group_id
10
11
12
|
# File 'lib/azure_info.rb', line 10
def group
ENV['ARM_GROUP'] || configure.get("group")
end
|
#location ⇒ Object
15
16
17
|
# File 'lib/azure_info.rb', line 15
def location
ENV['ARM_LOCATION'] || configure.get("location") || "eastus"
end
|
#subscription_id ⇒ Object
Also known as:
subscription
19
20
21
|
# File 'lib/azure_info.rb', line 19
def subscription_id
ENV['ARM_SUBSCRIPTION_ID'] || account.get("id")
end
|
#tenant_id ⇒ Object
Also known as:
tenant
24
25
26
|
# File 'lib/azure_info.rb', line 24
def tenant_id
ENV['ARM_TENANT_ID'] || account.get("tenantId")
end
|