https://github.com/pplu/azure-arm
A class to parse Azure ARM templates into an object model
https://github.com/pplu/azure-arm
arm-templates azure perl resource-manager
Last synced: 2 months ago
JSON representation
A class to parse Azure ARM templates into an object model
- Host: GitHub
- URL: https://github.com/pplu/azure-arm
- Owner: pplu
- Created: 2017-10-16T22:21:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T17:37:47.000Z (about 7 years ago)
- Last Synced: 2025-10-26T12:47:17.822Z (8 months ago)
- Topics: arm-templates, azure, perl, resource-manager
- Language: Perl
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NAME
AzureARM - Object model of Azure ARM templates
# SYNOPSIS
# best practice is to obtain an AzureARM with the AzureARM parser
use AzureARM::Parser;
my $parser = AzureARM::Parser->new;
my $arm = $parser->from_json('{ ... }');
say "This template has ", $arm->ResourceCount, " resources";
say "This template has the following variables: ", join ' ', $arm->VariableNames;
# DESCRIPTION
Object of the AzureARM type an Azure ARM template, converting it into an [AzureARM](https://metacpan.org/pod/AzureARM)
object to introspect it
# ATTRIBUTES
## schema
string containing the '$schema' element of the template (string)
## contentVersion
string containing the contentVersion element of the template (string)
## resources
arrayref of AzureARM::Resource objects
## ResourceCount
number of resources in the template
## ResourceList
list of resources in the template
## parameters
hashref of AzureARM::Template::Parameter objects
## ParameterCount
number of parameters in the template
## ParameterNames
list of names of parameters
## Parameter($name)
accesses the parameter of name $name. Returns an AzureARM::Template::Parameter object
## variables
hashref of AzureARM::Value objects. Keys are the names of the variables.
## VariableCount
number of variables declared
## VariableNames
list of the names of the variables declared
## Variable($name)
returns the AzureARM::Value object that corresponds to the variable named $name
## outputs
hashref of AzureARM::Template::Output objects. Keys are the names of the outputs
## OutputCount
number of outputs declared
## OutputNames
list of the names of the outputs declared
## Output($name)
returns the AzureARM::Template::Output object that corresponds to the output named $name
# AUTHOR
Jose Luis Martinez
CPAN ID: JLMARTIN
CAPSiDE
jlmartinez@capside.com
# COPYRIGHT and LICENSE
(c) 2017 CAPSiDE S.L.
This code is distributed under the Apache v2 License