{"id":473,"date":"2018-04-12T11:45:26","date_gmt":"2018-04-12T11:45:26","guid":{"rendered":"http:\/\/www.ciraltos.com\/?p=473"},"modified":"2023-03-24T00:32:04","modified_gmt":"2023-03-24T05:32:04","slug":"notfound-arm-template-error","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/","title":{"rendered":"&#8220;NotFound&#8221; ARM Template Error"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-thumbnail wp-image-477\" src=\"\/wp-content\/uploads\/2018\/04\/error-150x150.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/04\/error-150x150.png 150w, https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/04\/error.png 256w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>I recently ran into an issue while deploying a VM with an ARM template. The server deployed correctly, but the JoinDomain extension failed with the error below:<!--more--><\/p>\n<pre>New-AzureRmResourceGroupDeployment : 1:37:12 PM - Resource Microsoft.Compute\/virtualMachines\/extensions 'SERVER\/joindomain' failed with message '{\n    \"error\": {\n    \"code\": \"NotFound\",\n    \"target\": \"vmName\",\n    \"message\": \"The entity was not found.\"\n  }\n}'\nAt line:1 char:1<\/pre>\n<p>After some time troubleshooting I found the issue. Normally I deploy servers and other services in the same location as the resource group. In this instance the Resource Group was in the East US region and the server was deployed to the Central US region. In the section for the JoinDomain Virtual Machine Extension below, you can see that Location is populated by the Resource Group location variable.<\/p>\n<pre> \"apiVersion\": \"2017-12-01\",\n \"type\": \"Microsoft.Compute\/virtualMachines\/extensions\",\n \"name\": \"[concat(concat(parameters('virtualMachineNamePrefix'), copyIndex(1)),'\/joindomain')]\",\n \"location\": \"[resourceGroup().location]\",<\/pre>\n<p>Essentially, the code was pointing at the Resource Group location of East US when it needed to be Central US. I changed &#8220;[resourceGroup().location]\u201d to \u201ccentralus\u201d and everything ran fine.<\/p>\n<p>Interestingly enough, my template has a \u201cLocation\u201d parameter for the server location. The solution to this is to replace &#8220;[resourceGroup().location]&#8221; with &#8220;[parameters(&#8216;location&#8217;)]&#8221; so the template always uses the correct location.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently ran into an issue while deploying a VM with an ARM template. The server deployed correctly, but the JoinDomain extension failed with the error below:<\/p>\n","protected":false},"author":1,"featured_media":4091,"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],"tags":[175,183,103,218,187],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>&quot;NotFound&quot; ARM Template Error - ciraltos<\/title>\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\/notfound-arm-template-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;NotFound&quot; ARM Template Error - ciraltos\" \/>\n<meta property=\"og:description\" content=\"I recently ran into an issue while deploying a VM with an ARM template. The server deployed correctly, but the JoinDomain extension failed with the error below:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-12T11:45:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T05:32:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/04\/error-150x150-1.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"&#8220;NotFound&#8221; ARM Template Error\",\"datePublished\":\"2018-04-12T11:45:26+00:00\",\"dateModified\":\"2023-03-24T05:32:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/\"},\"wordCount\":161,\"commentCount\":1,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"ARM\",\"Dynamic Azure ARM Template\",\"error\",\"NotFound\",\"resource group\"],\"articleSection\":[\"Azure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/\",\"name\":\"\\\"NotFound\\\" ARM Template Error - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2018-04-12T11:45:26+00:00\",\"dateModified\":\"2023-03-24T05:32:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;NotFound&#8221; ARM Template Error\"}]},{\"@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":"\"NotFound\" ARM Template Error - ciraltos","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\/notfound-arm-template-error\/","og_locale":"en_US","og_type":"article","og_title":"\"NotFound\" ARM Template Error - ciraltos","og_description":"I recently ran into an issue while deploying a VM with an ARM template. The server deployed correctly, but the JoinDomain extension failed with the error below:","og_url":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/","og_site_name":"ciraltos","article_published_time":"2018-04-12T11:45:26+00:00","article_modified_time":"2023-03-24T05:32:04+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2018\/04\/error-150x150-1.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"&#8220;NotFound&#8221; ARM Template Error","datePublished":"2018-04-12T11:45:26+00:00","dateModified":"2023-03-24T05:32:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/"},"wordCount":161,"commentCount":1,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["ARM","Dynamic Azure ARM Template","error","NotFound","resource group"],"articleSection":["Azure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/","url":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/","name":"\"NotFound\" ARM Template Error - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2018-04-12T11:45:26+00:00","dateModified":"2023-03-24T05:32:04+00:00","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/notfound-arm-template-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"&#8220;NotFound&#8221; ARM Template Error"}]},{"@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\/473"}],"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=473"}],"version-history":[{"count":6,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":4092,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/473\/revisions\/4092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/4091"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}