Method: Inspec::Resources::AzureResourceGroup#subscription_id
- Defined in:
- lib/resources/azure/azure_resource_group.rb
#subscription_id ⇒ Object
Analyze the fully qualified id of the resource group to return the subscription id that this resource group is part of
The format of the id is
/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME>
71 72 73 |
# File 'lib/resources/azure/azure_resource_group.rb', line 71 def subscription_id id.split(%r{\/}).reject(&:empty?)[1] end |