{"id":671,"date":"2018-11-03T20:25:36","date_gmt":"2018-11-03T20:25:36","guid":{"rendered":"http:\/\/www.ciraltos.com\/?p=671"},"modified":"2023-03-23T23:45:11","modified_gmt":"2023-03-24T04:45:11","slug":"json-and-arm-templates","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/","title":{"rendered":"JSON and ARM Templates"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-thumbnail wp-image-673\" src=\"\/wp-content\/uploads\/2018\/11\/AzureARM-150x150.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/AzureARM-150x150.png 150w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/AzureARM-300x300.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/AzureARM.png 512w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>ARM Templates are written with JSON and are at the core of Azure Resource Manager deployments.&nbsp; I have used and developed templates for months.&nbsp; Although successful, I ran into issues with formatting and syntax this week and decided to take a step back and get a better understanding of the underlying JSON used in these templates.&nbsp; In this post, I start from the beginning, exploring JSON as it relates to ARM templates.<!--more--><\/p>\n<h2>What is JSON?<\/h2>\n<p>The best place to start is with the question, what is JSON?&nbsp; JSON stands for JavaScript Object Notation.&nbsp; JSON is a data file format, similar XML.&nbsp; JavaScript is not the same as Java, it actually has nothing to do with Java, its name was a marketing decision made many years ago that stuck.&nbsp; There is an interesting history on how that came to be, but off topic for this post.<\/p>\n<p>There is a lot of resources available to learn about JSON.&nbsp; I try to limit this post to what is relevant to formatting ARM Templates in Azure.<\/p>\n<h2>JSON Syntax<\/h2>\n<p>A JSON document is a text file that holds data.&nbsp; Data is in the format of a key-value pairs. These data pairs are objects that can be nested in multiple levels.&nbsp; It uses specific characters, or syntax, to format the data.&nbsp; The characters used are:<\/p>\n<p>{ }&nbsp; Curly brackets are used to hold objects and all data is considered an object.&nbsp; JSON documents start and end with brackets so everything will be in a bracket at some level.<\/p>\n<p>\u201c \u201d&nbsp; Double quotes hold the string values.<\/p>\n<p>:&nbsp; The colon separates keys and values in key-value pair object.<\/p>\n<p>,&nbsp; The comma separates objects as well as values in an array.<\/p>\n<p>[ ] Brackets hold arrays or ordered list of objects.&nbsp; An array can contain a list of data or a list of key, value pairs.<\/p>\n<p>\u2018 \u2018 Single quotes.&nbsp; These, technically, are not supported for JSON, but they can be passed to JavaScript functions.&nbsp; They are used to quote within double quotes without the need for escape characters in ARM templates.<\/p>\n<p>A JSON document can represent specific data types.&nbsp; Below are the supported data types and examples:<\/p>\n<table style=\"width: 50%; border-collapse: collapse; border-style: none;\" border=\"0\">\n<tbody>\n<tr>\n<td style=\"width: 20.8479%;\">Number<\/td>\n<td style=\"width: 74.4878%;\">1234<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20.8479%;\">String<\/td>\n<td style=\"width: 74.4878%;\">\u201cHello World\u201d<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20.8479%;\">Boolean<\/td>\n<td style=\"width: 74.4878%;\">true or false, note no double quotes<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20.8479%;\">Array<\/td>\n<td style=\"width: 74.4878%;\">\u201cHello\u201d, \u201cWorld\u201d<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20.8479%;\">Object<\/td>\n<td style=\"width: 74.4878%;\">\u201ccolor\u201d:\u201dred\u201d<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20.8479%;\">Null<\/td>\n<td style=\"width: 74.4878%;\">:null<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Tools<\/h2>\n<p>JSON can be written in any text editor including notepad or Vi.&nbsp; I suggest something that is JSON aware and can help with formatting and syntax.&nbsp; Below is a list of a few free options that come to mind.<\/p>\n<p>Visual Studio Code \u2013 My favorite.&nbsp; Add the Microsoft PowerShell and Resource Manager extension.&nbsp; Also, the Prettier Code Formatter can help with the appearance of many types of code.<\/p>\n<p>Brackets \u2013 I just started using this and so far it seems to work and look great.&nbsp; Add the Pretty Json Extension for formatting JSON docs.<\/p>\n<p>NotePad++ &#8211; The old standby that should be in everyone&#8217;s toolbox.&nbsp; A great all around editor, but one of the above tools may be better for heavy JSON editing.<\/p>\n<p>PowerShell \u2013 ConvertTo-Json and ConvertFrom-Json can import JSON as a PowerShell Object and output to JSON.<\/p>\n<p>jq \u2013 For those who like the command-line, jq is a lightweight JSON processor.<\/p>\n<p>Online Editors \u2013 a search for \u201cJSON Online Editors\u201d will turn up a bunch of options that will let you dump unformatted JSON text and convert it to a formatted, human-readable version.<\/p>\n<h2>Formatting JSON<\/h2>\n<p>Now that we have the basics out of the way, let\u2019s look at examples.&nbsp; I am using parts of an ARM Template for this example.&nbsp; The focus, for now, is on formatting JSON.&nbsp; I will go deeper into ARM Templates in another post.<\/p>\n<p>The beginning of an ARM Template looks like this:<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-683 size-full\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_1.png\" alt=\"\" width=\"982\" height=\"136\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_1.png 982w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_1-300x42.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_1-768x106.png 768w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/a><\/p>\n<p>Here are the labeled elements:<\/p>\n<p>1, This is the opening and closing curly bracket.&nbsp; Every JSON document has these as everything in the document is an object.&nbsp; In this case, there are two complex objects in the document.<\/p>\n<p>2, This is the&nbsp; key of the key-value pair.&nbsp; Notice it\u2019s in double quotes.&nbsp; All string values are in double quotes.<\/p>\n<p>3, This is the string value of the key-value pair.&nbsp; Again, notice the double quotes.<\/p>\n<p>4, The colon separates the key-value pairs.&nbsp; To the left is the key, to the right is the value.<\/p>\n<p>5, the comma separates the key-value objects.<\/p>\n<p>The white spaces and line breaks are not necessary for JSON.&nbsp; A computer has no problem interpreting the same information as above in this format:<\/p>\n<pre>{\"$schema\":\"http:\/\/schema.management.azure.com\/schemas\/2015-01-01\/deploymentTemplate.json#\",\"contentVersion\": \"1.0.0.0\"}<\/pre>\n<p>That may not seem too bad, but a full, unformated ARM template would be impossible to read.&nbsp; That\u2019s where Brackets or the Prettier extension in VS Code comes in handy.&nbsp; These tools can properly format unformatted JSON files.<\/p>\n<p>Moving on with the example, let&#8217;s add a parameter and examine the formatting.&nbsp; Below we add a parameter of WindowsOSVersion.&nbsp; You can see where formatting becomes important as every object needs an opening and closing bracket.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-684 size-large\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_2-1024x414.png\" alt=\"\" width=\"640\" height=\"259\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_2-1024x414.png 1024w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_2-300x121.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_2-768x311.png 768w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_2.png 1228w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>This example shows the nesting of objects in the JSON file.&nbsp; While $schema and contentVersion represent a simple key-value pair, windowsOSVersion contains a list of other key-value pair objects.&nbsp; You can see the relationship by mapping out the keys from this section of code.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-685\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_3-1024x439.png\" alt=\"\" width=\"640\" height=\"274\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_3-1024x439.png 1024w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_3-300x129.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_3-768x330.png 768w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_3.png 1382w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>We can explore this data in PowerShell by running the Convertfrom-Json command to load the data as a PowerShell Object.&nbsp; First, load the data into PowerShell with the command below.&nbsp; Replacing the path and file name with your own.<\/p>\n<pre>$json = (Get-Content .\\Template1.json -Raw) | ConvertFrom-Json<\/pre>\n<p>From there you can drill down to get the values at each level of the JSON file using .psobject.properties.name as shown below.&nbsp; In the end, we can query the allowedValues property name to see the value of that key.&nbsp; In this case, its an array of string values.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_image_4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-686\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_image_4-1024x352.png\" alt=\"\" width=\"640\" height=\"220\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_image_4-1024x352.png 1024w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_image_4-300x103.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_image_4-768x264.png 768w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_image_4.png 1053w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Although the above exercise may not seem directly related to creating ARM templates in Azure, it does illustrate that JSON templates represent a data file like any other JSON file with the same formatting and methods.&nbsp; <em>An ARM JSON Template is nothing more than a data structure that defines the deployment.<\/em><\/p>\n<h2>Arrays<\/h2>\n<p>In the example above, windowsOSVersion contains other key-value pair complex objects.&nbsp; The key \u201callowedValues\u201d contains a different object type, this is an array of string values.&nbsp; Arrays are identified by the leading and trailing [] brackets and contain an ordered list of values.&nbsp; These can be queried for a specific value by adding the numeric identifier in brackets like below.&nbsp; Note that the first element starts with [0].<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-681 size-full\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_5.png\" alt=\"\" width=\"985\" height=\"41\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_5.png 985w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_5-300x12.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_5-768x32.png 768w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_5-960x41.png 960w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/a><\/p>\n<p>Key-value pairs only have one value, however, that value can be an array of values. The windowsOSVersion key contains one array of multiple string values.&nbsp; It is also valid for a key to contain an array of key-value pairs, such as below.&nbsp; The Key &#8220;car&#8221; contains an array of key-value pairs.&nbsp; These key-value pairs can have nested values and those can have nested values and so on.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_6.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-682\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_6.png\" alt=\"\" width=\"213\" height=\"275\"><\/a><\/p>\n<p>Matter of fact, the entire Resources section of an arm template is made up of a single \u201cresources\u201d key and an array of values.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_7.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-692\" src=\"\/wp-content\/uploads\/2018\/11\/11_3_Image_7-1024x206.png\" alt=\"\" width=\"640\" height=\"129\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_7-1024x206.png 1024w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_7-300x60.png 300w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_7-768x154.png 768w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/11\/11_3_Image_7.png 1203w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>If you made it this far, thanks!&nbsp; I hope it helped.&nbsp; In my next post, I\u2019m going to expand on this and begin building a working ARM template.&nbsp; The link to that post is <a href=\"http:\/\/www.ciraltos.com\/arm-template-basics\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ARM Templates are written with JSON and are at the core of Azure Resource Manager deployments.&nbsp; I have used and developed templates for months.&nbsp; Although successful, I ran into issues with formatting and syntax this week and decided to take a step back and get a better understanding of the underlying JSON used in these &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\"> <span class=\"screen-reader-text\">JSON and ARM Templates<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[2,170],"tags":[175,298,9,12,300,301,297,11,20,68,75,299,27,122],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSON and ARM Templates - ciraltos<\/title>\n<meta name=\"description\" content=\"In this post, I start from the beginning, exploring JSON as it relates to ARM templates.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON and ARM Templates - ciraltos\" \/>\n<meta property=\"og:description\" content=\"In this post, I start from the beginning, exploring JSON as it relates to ARM templates.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-03T20:25:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T04:45:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/AzureARM-150x150-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Travis Roberts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:site\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Travis Roberts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"JSON and ARM Templates\",\"datePublished\":\"2018-11-03T20:25:36+00:00\",\"dateModified\":\"2023-03-24T04:45:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\"},\"wordCount\":1244,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"ARM\",\"Array\",\"Azure\",\"cloud\",\"convertfrom-json\",\"convertto-json\",\"JSON\",\"Microsoft\",\"Powershell\",\"script\",\"server\",\"String\",\"virtual machine\",\"windows\"],\"articleSection\":[\"Azure\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\",\"name\":\"JSON and ARM Templates - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2018-11-03T20:25:36+00:00\",\"dateModified\":\"2023-03-24T04:45:11+00:00\",\"description\":\"In this post, I start from the beginning, exploring JSON as it relates to ARM templates.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON and ARM Templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\",\"url\":\"http:\/\/www.ciraltos.com\/staging2\/\",\"name\":\"ciraltos\",\"description\":\"cloud, technology and trends\",\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\",\"name\":\"Travis Roberts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"contentUrl\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"width\":5657,\"height\":3563,\"caption\":\"Travis Roberts\"},\"logo\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.ciraltos.com\",\"https:\/\/twitter.com\/ciraltos\"],\"url\":\"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON and ARM Templates - ciraltos","description":"In this post, I start from the beginning, exploring JSON as it relates to ARM templates.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/","og_locale":"en_US","og_type":"article","og_title":"JSON and ARM Templates - ciraltos","og_description":"In this post, I start from the beginning, exploring JSON as it relates to ARM templates.","og_url":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/","og_site_name":"ciraltos","article_published_time":"2018-11-03T20:25:36+00:00","article_modified_time":"2023-03-24T04:45:11+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/AzureARM-150x150-2.png","type":"image\/png"}],"author":"Travis Roberts","twitter_card":"summary_large_image","twitter_creator":"@ciraltos","twitter_site":"@ciraltos","twitter_misc":{"Written by":"Travis Roberts","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"JSON and ARM Templates","datePublished":"2018-11-03T20:25:36+00:00","dateModified":"2023-03-24T04:45:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/"},"wordCount":1244,"commentCount":0,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["ARM","Array","Azure","cloud","convertfrom-json","convertto-json","JSON","Microsoft","Powershell","script","server","String","virtual machine","windows"],"articleSection":["Azure","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/","url":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/","name":"JSON and ARM Templates - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2018-11-03T20:25:36+00:00","dateModified":"2023-03-24T04:45:11+00:00","description":"In this post, I start from the beginning, exploring JSON as it relates to ARM templates.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/json-and-arm-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"JSON and ARM Templates"}]},{"@type":"WebSite","@id":"http:\/\/www.ciraltos.com\/staging2\/#website","url":"http:\/\/www.ciraltos.com\/staging2\/","name":"ciraltos","description":"cloud, technology and trends","publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a","name":"Travis Roberts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/","url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","contentUrl":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","width":5657,"height":3563,"caption":"Travis Roberts"},"logo":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.ciraltos.com","https:\/\/twitter.com\/ciraltos"],"url":"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/671"}],"collection":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":16,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"predecessor-version":[{"id":4068,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/671\/revisions\/4068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/4063"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}