<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>automaticstartaction Archives - Apostolidis Cloud Corner</title>
	<atom:link href="https://www.cloudcorner.gr/tag/automaticstartaction/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.cloudcorner.gr/tag/automaticstartaction/</link>
	<description>Remarks from a Cloud Architect encounters</description>
	<lastBuildDate>Fri, 07 Jul 2017 08:41:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.cloudcorner.gr/wp-content/uploads/2021/04/cropped-cloudcorner2-32x32.png</url>
	<title>automaticstartaction Archives - Apostolidis Cloud Corner</title>
	<link>https://www.cloudcorner.gr/tag/automaticstartaction/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Auto Start/Stop an Azure VM (ARM)</title>
		<link>https://www.cloudcorner.gr/microsoft/azure/auto-startstop-azure-vm-arm/</link>
					<comments>https://www.cloudcorner.gr/microsoft/azure/auto-startstop-azure-vm-arm/#respond</comments>
		
		<dc:creator><![CDATA[Pantelis Apostolidis]]></dc:creator>
		<pubDate>Thu, 01 Dec 2016 14:07:54 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[automaticstartaction]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[azurerm]]></category>
		<guid isPermaLink="false">http://www.e-apostolidis.gr/?p=1046</guid>

					<description><![CDATA[<p>Auto start stop azure vm (ARM) For Azure VMs that are not needed to be running 24/7, we can use</p>
<p>The post <a href="https://www.cloudcorner.gr/microsoft/azure/auto-startstop-azure-vm-arm/">Auto Start/Stop an Azure VM (ARM)</a> appeared first on <a href="https://www.cloudcorner.gr">Apostolidis Cloud Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1><strong>Auto start stop azure vm (ARM)</strong></h1>
<p>For Azure VMs that are not needed to be running 24/7, we can use Azure Automation to schedule auto Start Stop Azure VM. First ensure to reserve resources if needed, such as the Private and the Public IP.</p>
<p>Now lets see how we will Auto Start/Stop an Azure VM (ARM). First create an Automation Account, go to the Azure Portal, expand more services and  search for automation. Then click the &#8220;Automation Accounts&#8221;</p>
<p id="wVHOPYQ"><img fetchpriority="high" decoding="async" width="625" height="178" class="alignnone size-full wp-image-1047 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/10/img_57f79674629bf.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f79674629bf.png 625w, https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f79674629bf-300x85.png 300w" sizes="(max-width: 625px) 100vw, 625px" /></p>
<p>At the Automation Accounts press &#8220;Add&#8221;</p>
<p id="TPbzYuV"><img decoding="async" width="373" height="156" class="alignnone size-full wp-image-1049 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/10/img_57f7971d32e98.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f7971d32e98.png 373w, https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f7971d32e98-300x125.png 300w" sizes="(max-width: 373px) 100vw, 373px" /></p>
<p>At the Automation Account creation blade provide a Name, the Subscription, the Resource Group, trhe location and if it is the first Automation Account select Yes to create automatically a Run As account</p>
<p id="lyFArvW"><img decoding="async" width="304" height="648" class="alignnone size-full wp-image-1050 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/10/img_57f79753e5566.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f79753e5566.png 304w, https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f79753e5566-141x300.png 141w" sizes="(max-width: 304px) 100vw, 304px" /></p>
<p>After the creation it will open the new Automation Account&#8217;s blade. Here click the &#8220;Runbooks&#8221;</p>
<p id="RbzvAXh"><img loading="lazy" decoding="async" width="581" height="480" class="alignnone size-full wp-image-1052 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/10/img_57f798ebe9830.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f798ebe9830.png 581w, https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f798ebe9830-300x248.png 300w" sizes="auto, (max-width: 581px) 100vw, 581px" /></p>
<p>We don&#8217;t need to write any scripting since there are available Runbooks at the gallery, so select Browse gallery</p>
<p id="aGpdtdm"><img loading="lazy" decoding="async" width="353" height="103" class="alignnone size-full wp-image-1054 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/10/img_57f79b2079371.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f79b2079371.png 353w, https://www.cloudcorner.gr/wp-content/uploads/2016/10/img_57f79b2079371-300x88.png 300w" sizes="auto, (max-width: 353px) 100vw, 353px" /></p>
<p>At the Gallery search for the &#8220;Start Azure V2 VMs&#8221; and &#8220;Stop Azure V2 VMs&#8221; Graphical Runbooks.</p>
<p id="kXqsmbY"><img loading="lazy" decoding="async" width="578" height="127" class="alignnone size-full wp-image-1070 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_58401f20bd75c.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_58401f20bd75c.png 578w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_58401f20bd75c-300x66.png 300w" sizes="auto, (max-width: 578px) 100vw, 578px" /></p>
<p id="kdjhkRZ"><img loading="lazy" decoding="async" width="562" height="116" class="alignnone size-full wp-image-1069 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_58401f009cb86.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_58401f009cb86.png 562w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_58401f009cb86-300x62.png 300w" sizes="auto, (max-width: 562px) 100vw, 562px" /></p>
<p>Click the Runbook and a the new blade press Import. Type a unique name and press OK</p>
<p><img loading="lazy" decoding="async" width="198" height="76" class="alignnone size-full wp-image-1071 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_58401f7755119.png" alt="" /><img loading="lazy" decoding="async" width="199" height="123" class="alignnone size-full wp-image-1072 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_58402010139bf.png" alt="" /></p>
<p>After the import, we will be navigated to the Runbook and we need to Publish it in order to be able to use it. At the Runbook&#8217;s blade, press &#8220;Edit&#8221;</p>
<p id="qZlWMkR"><img loading="lazy" decoding="async" width="461" height="68" class="alignnone size-full wp-image-1073 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_584020407898d.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584020407898d.png 461w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584020407898d-300x44.png 300w" sizes="auto, (max-width: 461px) 100vw, 461px" /></p>
<p>And then press Publish</p>
<p id="vaKYdrF"><img loading="lazy" decoding="async" width="404" height="84" class="alignnone size-full wp-image-1075 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_584020edeec41.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584020edeec41.png 404w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584020edeec41-300x62.png 300w" sizes="auto, (max-width: 404px) 100vw, 404px" /></p>
<p>After the Publishing the Runbook is ready to Start and add Schedules. Now lets add Schedules to specify the VM and the schedule that will Start. Press &#8220;Schedule&#8221;</p>
<p><img loading="lazy" decoding="async" width="485" height="84" class="alignnone size-full wp-image-1076 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_584020f9543f7.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584020f9543f7.png 485w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584020f9543f7-300x52.png 300w" sizes="auto, (max-width: 485px) 100vw, 485px" /></p>
<p>Press Link a schedule to your runbook and then Create a new schedule</p>
<p id="QAYgJvm"><img loading="lazy" decoding="async" width="590" height="130" class="alignnone size-full wp-image-1078 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_5840220ecc774.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_5840220ecc774.png 590w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_5840220ecc774-300x66.png 300w" sizes="auto, (max-width: 590px) 100vw, 590px" /></p>
<p>Give a name to the schedule, and then select the Start date and time and the recurrency, at my example it will start the VM everyday at 7:00 am</p>
<p id="eHXSYPS"><img loading="lazy" decoding="async" width="293" height="654" class="alignnone size-full wp-image-1079 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_5840244cc1e4b.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_5840244cc1e4b.png 293w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_5840244cc1e4b-134x300.png 134w" sizes="auto, (max-width: 293px) 100vw, 293px" /></p>
<p>then go to the Parameters and provide the Resourcegroup name and the VM name and press OK.</p>
<p id="leymWsm"><img loading="lazy" decoding="async" width="314" height="657" class="alignnone size-full wp-image-1080 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_584024c921831.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584024c921831.png 314w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584024c921831-143x300.png 143w" sizes="auto, (max-width: 314px) 100vw, 314px" /></p>
<p>The Runbook is ready. Create more Schedules for all needed VMs. And then repeat the process for the &#8220;Stop Azure VM V2&#8221; runbook and you will have two Runbooks with many Schedules. To test a Runbook press &#8220;Start&#8221;.</p>
<p id="RpPdokz"><img loading="lazy" decoding="async" width="399" height="224" class="alignnone size-full wp-image-1082 " src="http://www.e-apostolidis.gr/wp-content/uploads/2016/12/img_584027f614947.png" alt="" srcset="https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584027f614947.png 399w, https://www.cloudcorner.gr/wp-content/uploads/2016/12/img_584027f614947-300x168.png 300w" sizes="auto, (max-width: 399px) 100vw, 399px" /></p>
<p>&nbsp;</p>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img loading="lazy" decoding="async" src="https://www.e-apostolidis.gr/wp-content/uploads/2019/05/mvpsummit2019.jpg" width="100"  height="100" alt="Pantelis Apostolidis" itemprop="image"></div><div class="saboxplugin-authorname"><a href="https://www.cloudcorner.gr/author/admin/" class="vcard author" rel="author"><span class="fn">Pantelis Apostolidis</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>Pantelis Apostolidis is a Sr. Specialist, Azure at Microsoft and a former Microsoft Azure MVP. For the last 20 years, Pantelis has been involved to major cloud projects in Greece and abroad, helping companies to adopt and deploy cloud technologies, driving business value. He is entitled to a lot of Microsoft Expert Certifications, demonstrating his proven experience in delivering high quality solutions. He is an author, blogger and he is acting as a spokesperson for conferences, workshops and webinars. He is also an active member of several communities as a moderator in azureheads.gr and autoexec.gr. Follow him on Twitter @papostolidis.</p>
</div></div><div class="saboxplugin-web "><a href="https://www.cloudcorner.gr" target="_self" >www.cloudcorner.gr</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_blank" href="https://www.facebook.com/pantelis.apostolidis" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_blank" href="https://www.linkedin.com/in/papostolidis/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Instagram" target="_blank" href="https://www.instagram.com/proximagr" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg></span></a><a title="Rss" target="_blank" href="https://wwwcloudcorner.gr/feed/rdf/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-rss" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"></path></svg></span></a><a title="Twitter" target="_blank" href="https://twitter.com/papostolidis" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Github" target="_blank" href="https://github.com/proximagr" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-github" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></span></a><a title="User email" target="_self" href="mailto:&#112;r&#111;&#120;&#105;&#109;a&#103;r&#064;&#104;&#111;&#116;&#109;&#097;i&#108;.&#099;&#111;m" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-user_email" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"></path></svg></span></a></div></div></div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.cloudcorner.gr%2Fmicrosoft%2Fazure%2Fauto-startstop-azure-vm-arm%2F&amp;linkname=Auto%20Start%2FStop%20an%20Azure%20VM%20%28ARM%29" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_print" href="https://www.addtoany.com/add_to/print?linkurl=https%3A%2F%2Fwww.cloudcorner.gr%2Fmicrosoft%2Fazure%2Fauto-startstop-azure-vm-arm%2F&amp;linkname=Auto%20Start%2FStop%20an%20Azure%20VM%20%28ARM%29" title="Print" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.cloudcorner.gr%2Fmicrosoft%2Fazure%2Fauto-startstop-azure-vm-arm%2F&#038;title=Auto%20Start%2FStop%20an%20Azure%20VM%20%28ARM%29" data-a2a-url="https://www.cloudcorner.gr/microsoft/azure/auto-startstop-azure-vm-arm/" data-a2a-title="Auto Start/Stop an Azure VM (ARM)"><img src="https://static.addtoany.com/buttons/share_save_171_16.png" alt="Share"></a></p><p>The post <a href="https://www.cloudcorner.gr/microsoft/azure/auto-startstop-azure-vm-arm/">Auto Start/Stop an Azure VM (ARM)</a> appeared first on <a href="https://www.cloudcorner.gr">Apostolidis Cloud Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cloudcorner.gr/microsoft/azure/auto-startstop-azure-vm-arm/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Simple way to manage Automatic Start for multiple VMs at once</title>
		<link>https://www.cloudcorner.gr/everything/simple-way-to-manage-automatic-start-for-multiple-vms-at-once/</link>
		
		<dc:creator><![CDATA[Pantelis Apostolidis]]></dc:creator>
		<pubDate>Wed, 04 Jun 2014 08:54:05 +0000</pubDate>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[automaticstartaction]]></category>
		<guid isPermaLink="false">http://proximagr.wordpress.com/?p=42</guid>

					<description><![CDATA[<p>A simple command to see all Automatic Start actions is to run: [sourcecode language=&#8221;powershell&#8221;] get-vm -ComputerName HypervHost &#124; select name,auto* [/sourcecode]</p>
<p>The post <a href="https://www.cloudcorner.gr/everything/simple-way-to-manage-automatic-start-for-multiple-vms-at-once/">Simple way to manage Automatic Start for multiple VMs at once</a> appeared first on <a href="https://www.cloudcorner.gr">Apostolidis Cloud Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A simple command to see all Automatic Start actions is to run:<br />
[sourcecode language=&#8221;powershell&#8221;]<br />
get-vm -ComputerName HypervHost | select name,auto*<br />
[/sourcecode]<br />
(If you are running this on the Host you can ignore the &#8220;-ComputerName&#8221;)</p>
<p>To disable automatic start for all VMs of the host run:<br />
[sourcecode language=&#8221;powershell&#8221;]<br />
get-vm -ComputerName HypervHost | Set-VM -AutomaticStartAction Nothing</p>
<p>To enable automatic start for all VMs of the host run:<br />
get-vm -ComputerName HypervHost | Set-VM -AutomaticStartAction Start</p>
<p>Now, to manage the automatic start delay you need a text file with names of the clients and the delay time.<br />
Run Get-VM | select name&gt;c:vm.txt to take a list of all VMs of the host<br />
[/sourcecode]<br />
Open vm.txt and remove all blank lines. Now, simple add a second column with the delay time using comma (,). The txt file should look like this:</p>
<blockquote><p><span style="color:#808080;">Name,Delay</span><br />
<span style="color:#808080;">CLIENTNAME01,0</span><br />
<span style="color:#808080;">CLIENTNAME02,180</span><br />
<span style="color:#808080;">CLIENTNAME03,360</span><br />
<span style="color:#808080;">CLIENTNAME04,540</span><br />
<span style="color:#808080;">CLIENTNAME05,720</span><br />
<span style="color:#808080;">CLIENTNAME06,900</span><br />
<span style="color:#808080;">CLIENTNAME07,1080</span><br />
<span style="color:#808080;">CLIENTNAME08,1260</span></p></blockquote>
<p>Save the text file and run:<br />
[sourcecode language=&#8221;powershell&#8221;]<br />
Import-Csv C:vm.txt | foreach {set-vm $_.Name -AutomaticStartAction start -AutomaticStartDelay $_.Delay}<br />
[/sourcecode]<br />
and that&#8217;s all</p>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img loading="lazy" decoding="async" src="https://www.e-apostolidis.gr/wp-content/uploads/2019/05/mvpsummit2019.jpg" width="100"  height="100" alt="Pantelis Apostolidis" itemprop="image"></div><div class="saboxplugin-authorname"><a href="https://www.cloudcorner.gr/author/admin/" class="vcard author" rel="author"><span class="fn">Pantelis Apostolidis</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>Pantelis Apostolidis is a Sr. Specialist, Azure at Microsoft and a former Microsoft Azure MVP. For the last 20 years, Pantelis has been involved to major cloud projects in Greece and abroad, helping companies to adopt and deploy cloud technologies, driving business value. He is entitled to a lot of Microsoft Expert Certifications, demonstrating his proven experience in delivering high quality solutions. He is an author, blogger and he is acting as a spokesperson for conferences, workshops and webinars. He is also an active member of several communities as a moderator in azureheads.gr and autoexec.gr. Follow him on Twitter @papostolidis.</p>
</div></div><div class="saboxplugin-web "><a href="https://www.cloudcorner.gr" target="_self" >www.cloudcorner.gr</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_blank" href="https://www.facebook.com/pantelis.apostolidis" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_blank" href="https://www.linkedin.com/in/papostolidis/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Instagram" target="_blank" href="https://www.instagram.com/proximagr" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg></span></a><a title="Rss" target="_blank" href="https://wwwcloudcorner.gr/feed/rdf/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-rss" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"></path></svg></span></a><a title="Twitter" target="_blank" href="https://twitter.com/papostolidis" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Github" target="_blank" href="https://github.com/proximagr" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-github" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></span></a><a title="User email" target="_self" href="mailto:&#112;ro&#120;imag&#114;&#064;&#104;&#111;&#116;&#109;ail&#046;co&#109;" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-user_email" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"></path></svg></span></a></div></div></div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.cloudcorner.gr%2Feverything%2Fsimple-way-to-manage-automatic-start-for-multiple-vms-at-once%2F&amp;linkname=Simple%20way%20to%20manage%20Automatic%20Start%20for%20multiple%20VMs%20at%20once" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_print" href="https://www.addtoany.com/add_to/print?linkurl=https%3A%2F%2Fwww.cloudcorner.gr%2Feverything%2Fsimple-way-to-manage-automatic-start-for-multiple-vms-at-once%2F&amp;linkname=Simple%20way%20to%20manage%20Automatic%20Start%20for%20multiple%20VMs%20at%20once" title="Print" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.cloudcorner.gr%2Feverything%2Fsimple-way-to-manage-automatic-start-for-multiple-vms-at-once%2F&#038;title=Simple%20way%20to%20manage%20Automatic%20Start%20for%20multiple%20VMs%20at%20once" data-a2a-url="https://www.cloudcorner.gr/everything/simple-way-to-manage-automatic-start-for-multiple-vms-at-once/" data-a2a-title="Simple way to manage Automatic Start for multiple VMs at once"><img src="https://static.addtoany.com/buttons/share_save_171_16.png" alt="Share"></a></p><p>The post <a href="https://www.cloudcorner.gr/everything/simple-way-to-manage-automatic-start-for-multiple-vms-at-once/">Simple way to manage Automatic Start for multiple VMs at once</a> appeared first on <a href="https://www.cloudcorner.gr">Apostolidis Cloud Corner</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
