<?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>Shell &#8211; Haikos Blog</title>
	<atom:link href="https://www.hertes.net/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.hertes.net</link>
	<description>Blog von Haiko Hertes zu allen Themen rund um Microsoft, Cloud und Datacenter</description>
	<lastBuildDate>Tue, 30 Mar 2021 03:20:59 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Azure Regions / Locations auflisten</title>
		<link>https://www.hertes.net/2020/06/azure-regions-locations-auflisten/</link>
					<comments>https://www.hertes.net/2020/06/azure-regions-locations-auflisten/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Wed, 03 Jun 2020 12:42:50 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[Region]]></category>
		<category><![CDATA[Regionen]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3926</guid>

					<description><![CDATA[Immer wieder begegnet mir das Problem, dass ich z.B. für ARM Templates den &#8222;internen&#8220; Namen für eine Azure Region (dann als &#8222;Location&#8220; bezeichnet) brauche. Und immer wieder liefern Suchmaschinen-Anfragen nur die &#8222;Sprechenden Namen&#8220;. Daher hier für mich und den Rest der Welt als kleiner Cheat: Man kann die für den eigenen Tenant verfügbaren Regionen recht leicht mit Hilfe der Azure CLI (z.B. über Azure CloudShell) abfragen: az account list-locations --query "[].{Name:name, DisplayName:displayName}" -o table Regionen und Verfügbarkeitszonen in Azure &#124; Microsoft Docs]]></description>
										<content:encoded><![CDATA[
<p>Immer wieder begegnet mir das Problem, dass ich z.B. für ARM Templates den &#8222;internen&#8220; Namen für eine Azure Region (dann als &#8222;Location&#8220; bezeichnet) brauche. Und immer wieder liefern Suchmaschinen-Anfragen nur die &#8222;Sprechenden Namen&#8220;. Daher hier für mich und den Rest der Welt als kleiner Cheat:</p>


<p><span id="more-3926"></span></p>


<p>Man kann die für den eigenen Tenant verfügbaren Regionen recht leicht mit Hilfe der Azure CLI (z.B. über Azure CloudShell) abfragen:</p>


<pre lang="PowerShell" line="1">az account list-locations --query "[].{Name:name, DisplayName:displayName}" -o table</pre>


<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="830" height="498" src="https://www.hertes.net/wp-content/uploads/2020/06/image-2.png" alt="" class="wp-image-3927" srcset="https://www.hertes.net/wp-content/uploads/2020/06/image-2.png 830w, https://www.hertes.net/wp-content/uploads/2020/06/image-2-300x180.png 300w, https://www.hertes.net/wp-content/uploads/2020/06/image-2-768x461.png 768w" sizes="(max-width: 830px) 100vw, 830px" /></figure>



<p><a href="https://docs.microsoft.com/de-de/azure/availability-zones/az-overview?WT.mc_id=AZ-MVP-5001882#regions">Regionen und Verfügbarkeitszonen in Azure | Microsoft Docs</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2020/06/azure-regions-locations-auflisten/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Azure Cloud Shell &#8211; PowerShell für Azure</title>
		<link>https://www.hertes.net/2018/03/azure-cloud-shell-powershell-fr-azure/</link>
					<comments>https://www.hertes.net/2018/03/azure-cloud-shell-powershell-fr-azure/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Wed, 07 Mar 2018 13:22:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Azure Cloud Shell]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Cloudshell]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3572</guid>

					<description><![CDATA[Auch wenn es nicht erst seit gestern verfügbar ist, wollte ich gern auf ein cooles Feature in Azure hinweisen: Azure Cloud Shell. Kurz gesagt handelt es sich hier um ein Zugang zu Azure und seine Funktionen über PowerShell oder Linux Bash. Diese Shell läuft in einem Container auf Azure und kann ganz einfach über den Browser verwendet werden. Dazu ruft man einfach https://shell.azure.com auf. Nach der Anmeldung muss einmalig ein Storageaccount eingerichtet werden, der dann in die Shell gemountet wird und dort als Speicher zur Verfügung steht: Nach der Anmeldung bei Azure muss die gewünschte Subscription ausgewählt werden: Dann erfolgt&#8230;]]></description>
										<content:encoded><![CDATA[<p>Auch wenn es nicht erst seit gestern verfügbar ist, wollte ich gern auf ein cooles Feature in Azure hinweisen: Azure Cloud Shell.</p>
<p>Kurz gesagt handelt es sich hier um ein Zugang zu Azure und seine Funktionen über PowerShell oder Linux Bash. Diese Shell läuft in einem Container auf Azure und kann ganz einfach über den Browser verwendet werden. Dazu ruft man einfach</p>
<p><a href="https://shell.azure.com">https://shell.azure.com</a></p>
<p>auf. Nach der Anmeldung muss einmalig ein Storageaccount eingerichtet werden, der dann in die Shell gemountet wird </p>
<p>und dort als Speicher zur Verfügung steht:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-4.png"><img decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-4.png" width="640" height="332" /></a></p>
<p>Nach der Anmeldung bei Azure muss die gewünschte Subscription ausgewählt werden: </p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-5.png"><img decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-5.png" width="640" height="332" /></a></p>
<p>Dann erfolgt die Auswahl der gewünschten Shell – Bash auf Linux oder PwerShell auf Windows:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-6.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-6.png" width="640" height="332" /></a></p>
<p>Außerdem muss ein Storageaccount ausgewählt oder angelegt werden, wozu die Auswahl des gewünschten Abonnements erfolgen muss:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-7.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-7.png" width="640" height="332" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-8.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-8.png" width="640" height="335" /></a></p>
<p>Das Anlegen des Storage Accounts und der erste Start der Shell dauern dann leider etwas…</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-9.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-9.png" width="640" height="335" /></a></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-10.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-10.png" width="640" height="367" /></a></p>
<p>Fortan steht die Shell auch etwas schneller zur Verfügung. Sie kann auch aus dem Azure Portal aufgerufen werden – dazu ist der Button in der oberen Leiste gedacht:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2018/03/image-11.png"><img loading="lazy" decoding="async" title="image" style="border: 0px currentcolor; border-image: none; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" border="0" alt="image" src="https://www.hertes.net/wp-content/uploads/2018/03/image_thumb-11.png" width="640" height="70" /></a></p>
<p>Es gilt, ein paar Kleinigkeiten zu beachten:</p>
<ul>
<li>Es gibt einen 20-Minuten-Timeout in der Shell. Nach 20 Minuten Inaktivität wird die Shell recycelt.</li>
<li>Änderungen im Dateisystem sind nur innerhalb von $Home und clouddrive persistent</li>
<li>Man kann jederzeit zwischen Bash und PowerShell umschalten – aber man kann immer nur eine Shell gleichzeitig laufen haben</li>
<li>Der Power-Button oben startet die Shell (bzw. deren Container) neu – dabei gehen dann z.B. die Variablen und deren Werte verloren</li>
<li>Das Starten einer auf PowerShell basierenden Cloudshell kann ca. 60 Sekunden dauern – Bash geht deutlich schneller</li>
</ul>
<p>Weitere Details siehe hier:</p>
<p><a title="https://docs.microsoft.com/en-us/azure/cloud-shell/overview" href="https://docs.microsoft.com/en-us/azure/cloud-shell/overview">https://docs.microsoft.com/en-us/azure/cloud-shell/overview</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2018/03/azure-cloud-shell-powershell-fr-azure/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
