<?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>Azure &#8211; Miroslav Šraga</title>
	<atom:link href="https://www.sraga.cz/category/azure/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sraga.cz</link>
	<description>Sdílím své zkušenosti s Microsoft 365 a Azure</description>
	<lastBuildDate>Sun, 25 Jan 2026 13:03:12 +0000</lastBuildDate>
	<language>cs</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Azure Communication Services od A po Z</title>
		<link>https://www.sraga.cz/azure-communication-services-od-a-po-z/</link>
					<comments>https://www.sraga.cz/azure-communication-services-od-a-po-z/#respond</comments>
		
		<dc:creator><![CDATA[Miroslav Šraga]]></dc:creator>
		<pubDate>Sun, 25 Jan 2026 13:03:12 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure AD / Entra ID]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Správa IT]]></category>
		<category><![CDATA[Azure Communication Services]]></category>
		<category><![CDATA[Basic Authentication]]></category>
		<category><![CDATA[Entra ID]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://www.sraga.cz/?p=1465</guid>

					<description><![CDATA[Azure Communication Services (ACS) je cloudová platforma, která umožňuje integrovat e‑mail, SMS, chat, hlas i video do vlastních aplikací přes jednoduchá API a SDK. Využívá zabezpečení a identitu Microsoft Entra ID (OAuth 2.0), nabízí škálování, telemetrii a řízení nákladů, takže se hodí pro zasílání základních notifikací až po komplexní komunikační kanály. Pro zasílání e‑mailů je ... <a title="Azure Communication Services od A po Z" class="read-more" href="https://www.sraga.cz/azure-communication-services-od-a-po-z/" aria-label="Číst více o Azure Communication Services od A po Z">Číst dál</a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="1465" class="elementor elementor-1465" data-elementor-post-type="post">
				<div class="elementor-element elementor-element-bbdcef0 e-flex e-con-boxed e-con e-parent" data-id="bbdcef0" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-2c44e8c elementor-widget elementor-widget-text-editor" data-id="2c44e8c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Azure Communication Services (ACS) je <strong>cloudová</strong> platforma, která umožňuje <strong>integrovat e‑mail, SMS, chat, hlas i video do vlastních aplikací</strong> přes jednoduchá API a SDK.</p><p>Využívá zabezpečení a identitu Microsoft Entra ID (<strong>OAuth</strong> 2.0), nabízí škálování, telemetrii a řízení nákladů, takže se hodí pro zasílání základních notifikací až po komplexní komunikační kanály.</p><p>Pro zasílání e‑mailů je zde komponenta <strong>Azure Communication Services Email</strong>, která umožňuje programově <strong>odesílat</strong> například transakční <strong>zprávy</strong>, <strong>maily</strong> z <strong>multifunkčních</strong> zařízení, z internetových <strong>formulářů</strong>, <strong>skriptů</strong>, <strong>Logic Apps</strong>, Microsoft <strong>Sentinel</strong> a podobně.</p><p>Díky tomu může sloužit jako <strong><a href="https://www.sraga.cz/exchange-online-microsoft-vypne-basic-autentizaci-pro-client-submission-smtp-auth/" target="_blank" rel="noopener">náhrada za končící SMTP Basic Authentication</a></strong>. Klíč je v tom, že namísto běžných přihlašovacích údajů se v zařízení či aplikaci použije moderní ověřování přes Entra ID a zprávy se odesílají přes Communication Srvices Email standardním SMTP protokolem na portu 25 nebo 587.</p><p>Výsledkem je spolehlivější doručování, lepší audit a governance a výrazně bezpečnější model než přímé posílání přes SMTP s Basic autentizací ale při zachování naprosto totožné funkcionality.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-6d7587d elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents" data-id="6d7587d" data-element_type="widget" data-settings="{&quot;exclude_headings_by_selector&quot;:[],&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}" data-widget_type="table-of-contents.default">
				<div class="elementor-widget-container">
									<div class="elementor-toc__header">
						<h4 class="elementor-toc__header-title">
				Obsah			</h4>
										<div class="elementor-toc__toggle-button elementor-toc__toggle-button--expand" role="button" tabindex="0" aria-controls="elementor-toc__6d7587d" aria-expanded="true" aria-label="Open table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></div>
				<div class="elementor-toc__toggle-button elementor-toc__toggle-button--collapse" role="button" tabindex="0" aria-controls="elementor-toc__6d7587d" aria-expanded="true" aria-label="Close table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-up" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg></div>
					</div>
				<div id="elementor-toc__6d7587d" class="elementor-toc__body">
			<div class="elementor-toc__spinner-container">
				<svg class="elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading" aria-hidden="true" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><path d="M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z"></path></svg>			</div>
		</div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-d8ce7e1 e-flex e-con-boxed e-con e-parent" data-id="d8ce7e1" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-9212d06 elementor-widget elementor-widget-heading" data-id="9212d06" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Azure Communication Services - Email Comminication - celý postup</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-6be27a8 elementor-widget elementor-widget-video" data-id="6be27a8" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/snOQQRrmeEw&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-8488f8d elementor-widget elementor-widget-text-editor" data-id="8488f8d" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Tento návod je mixem níže uvedených video-návodu, které jsem vydal již dříve. Videa jsem spojil tak, aby dávala ucelený postup od A až po Z.</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3ac.png" alt="🎬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Obsah:</strong></p><p>00:00 &#8211; Úvod &#8211; Představení Azure Communication Services<br />02:50 &#8211; Základní limity služby<br />03:40 &#8211; Ceny (Azure Calculator)<br />06:39 &#8211; Důležité úkony, postup nasazení<br />09:05 &#8211; Vytvoření prostředku Azure Communication Service<br />11:00 &#8211; Vytvoření prostředku Email Communication Services<br />13:25 &#8211; Domain provisioning<br />&#8211; Free Azure subdomain<br />&#8211; Custom domain<br />17:45 &#8211; Propojení Azure Communication Service a Email Communication Services<br />19:00 &#8211; TEST: Odeslání e-mailu z Email Communication Services (Azure portál) &#8211; Free Azure subdomain<br />21:35 &#8211; Keys &amp; Connection strings &#8211; pro použití v Logic Apps a prostředí Azure<br />22:15 &#8211; Přidání vlastní domény do Email Communication Services (DNS: SPF, DKIM)<br />29:05 &#8211; TEST: Odeslání e-mailu z Email Communication Services (Azure portál) &#8211; vlastní doména / custom domain<br />30:10 &#8211; SMTP RELAY: Řízení přístupu IAM, Entra ID &#8211; Registrovaná aplikace &#8211; Communication and Email service Owner<br />&#8211; Udělení oprávnění<br />&#8211; Vytvoření Client secret pro Registrovanou aplikaci<br />&#8211; Vytvoření SMTP Username (uživatelské jméno pro SMTP)<br />37:24 &#8211; TEST: Odeslání emailu pomocí PowerShell scriptu přes Email Communication Services &#8211; ověření SMTP jméno + heslo (přes Registrovanou aplikaci a Client Secret / OAuth)<br />39:37 &#8211; TEST: Odeslání emailu pomocí PHP scriptu přes Email Communication Services &#8211; ověření SMTP jméno + heslo (přes Registrovanou aplikaci a Client Secret / OAuth)<br />40:45 &#8211; Nastavení vlastní identifikace odesílatele (MailFrom) namísto DoNotReply<br />46:15 &#8211; TEST &#8211; Odeslání e-mailu pomocí PowerShell skriptu s vlastní identifikací odesílatele (MailFrom)<br />46:20 &#8211; TEST &#8211; Odeslání e-mailu pomocí PHP skriptu s vlastní identifikací odesílatele (MailFrom)<br />50:08 &#8211; Azure Logic App &#8211; napojení na Communication Services, odeslání e-mailu<br />55:50 &#8211; Microsoft Sentinel &#8211; napojení na Communication Services, odeslání e-mailu<br />1:09:35 &#8211; Závěrečné shrnutí</p>								</div>
				</div>
				<div class="elementor-element elementor-element-984259f elementor-widget elementor-widget-heading" data-id="984259f" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Azure Communication Services - odesílání e-mailu bez identity uživatele (Sentinel, Logic App)</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-ce85202 elementor-widget elementor-widget-video" data-id="ce85202" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/iOPTcYNzg3w&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-6d2e6f8 elementor-widget elementor-widget-text-editor" data-id="6d2e6f8" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V tomto videu se dozvíte, jakým způsobem <strong>odeslat e-mail ze služby Microsoft Sentinel</strong> nebo z jakékoliv <strong>Logic App</strong>, aniž by bylo potřeba použít identitu uživatele &#8211; tedy bez nutnosti použití identity uživatele s licencí Exchange Online. K odeslání e-mailů tedy nebudeme používat napojení na účet uživatele, ale použijeme službu Azure Communication Services a konkrétně komponentu Email Communication Service.</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3ac.png" alt="🎬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Obsah:</strong><br />00:00 &#8211; Úvod<br />01:33 &#8211; Základní limity služby<br />02:30 &#8211; Ceny<br />05:33 &#8211; Vytvoření prostředku Azure Communication Service<br />07:35 &#8211; Vytvoření prostředku Email Communication Services<br />&#8211; Free Azure subdomain<br />&#8211; Custom domain<br />14:30 &#8211; Propojení Azure Communication Service a Email Communication Services<br />18:04 &#8211; Odeslání e-mailu z Logic App<br />24:40 &#8211; Nastavení vlastní domény (Custom domain)<br />32:17 &#8211; Azure Sentinel &#8211; jak odeslat e-mail s upozorněním na nový incident pomocí Email Communication Services<br />46:50 &#8211; Dodatečné informace:<br />&#8211; User Engagement Tracking<br />&#8211; MailFrom Addresses (vlastní adresy odesílatele)</p>								</div>
				</div>
				<div class="elementor-element elementor-element-ba07b65 elementor-widget elementor-widget-heading" data-id="ba07b65" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Odesílání emailů přes SMTP relay pomocí Microsoft Azure Communication Services</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-941694e elementor-widget elementor-widget-video" data-id="941694e" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/9BYnSXbL71c&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-d6b500b elementor-widget elementor-widget-text-editor" data-id="d6b500b" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>ACS Email může sloužit jako <strong>náhrada za končící SMTP Basic Authentication</strong>. Klíč je v tom, že namísto běžných přihlašovacích údajů se v zařízení či aplikaci použije <strong>moderní ověřování přes Entra ID</strong> a zprávy se odesílají přes <strong>Communication Services Email</strong> standardním SMTP protokolem na portu 25 nebo 587.</p><p>Výsledkem je spolehlivější doručování, lepší audit a governance a výrazně bezpečnější model než přímé posílání přes SMTP s Basic autentizací ale při zachování naprosto totožné funkcionality.</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3ac.png" alt="🎬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Obsah:</strong><br />00:00 &#8211; Úvod<br />01:50 &#8211; Důležité úkony<br />04:45 &#8211; Konfigurace Azure Communication Services &amp;&amp; Email Communication Services<br />06:45 &#8211; Entra ID &#8211; Registrovaná aplikace<br />09:05 &#8211; Udělení oprávnění<br />09:45 &#8211; Vytvoření Client secret pro Registrovanou aplikaci<br />12:30 &#8211; Vytvoření SMTP Username (uživatelské jméno pro SMTP)<br />13:50 &#8211; TEST &#8211; Odeslání e-mailu pomocí PowerShell skriptu<br />15:47 &#8211; TEST &#8211; Odeslání e-mailu pomocí PHP skriptu<br />16:57 &#8211; Nastavenní vlastní identifikace odesílatele (MailFrom) namísto DoNotReply<br />21:53 &#8211; TEST &#8211; Odeslání e-mailu pomocí PowerShell skriptu s vlastní identifikací odesílatele (MailFrom)<br />22:32 &#8211; TEST &#8211; Odeslání e-mailu pomocí PHP skriptu s vlastní identifikací odesílatele (MailFrom)<br />23:35 &#8211; Tipy na závěr, doporučení, ošetření chyb<br />25:25 &#8211; Zjištění aktuálních kvót<br />26:24 &#8211; Shrnutí, závěr</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" />Postup:</strong><br />Microsoft Azure (Subscription)<br />Azure Communication Service (ACS)<br />Email Communication Service (ECS)<br />Internet Domain<br />Domain verification<br />Domain connection to ECS<br />Entra ID Registred App + Generated secret<br />SMTP Accounts<br />Mail From addresses<br />Test</p>								</div>
				</div>
				<div class="elementor-element elementor-element-7abb089 elementor-widget elementor-widget-heading" data-id="7abb089" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">AZURE CLI: Přidání vlastního mailFrom</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-ae140b0 elementor-widget elementor-widget-code-block-for-elementor" data-id="ae140b0" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># az communication email domain sender-username create --domain-name domena.cz --email-service-name 365lab-1-cs-ecs --resource-group &quot;security-rg&quot; --sender-username &quot;UserName&quot; --username &quot;UserName&quot; --display-name &quot;DisplayName&quot;

az communication email domain sender-username create --domain-name domena.cz --email-service-name 365lab-1-cs-ecs --resource-group &quot;security-rg&quot; --sender-username printer --username printer --display-name Printer</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-55a739a elementor-widget elementor-widget-heading" data-id="55a739a" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">SCRIPT: Odeslání e-mailu pomocí PowerShell a ACS Email</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-5c8ff64 elementor-widget elementor-widget-code-block-for-elementor" data-id="5c8ff64" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># SmtpSend.ps1
# PowerShell script to send an email via SMTP
# www.sraga.cz

# Define SMTP server settings and email parameters
$SmtpServer = &quot;smtp.azurecomm.net&quot; # Azure Communication Services Email server
$SmtpPort = 587
$SmtpUser = &quot;userName@domena.cz&quot;
$SmtpPass = &quot;clientSecretValue&quot; # Entra ID Registreed Application
$SmtpFrom = &quot;mailFromAddress@domena.cz&quot;
$SmtpTo = &quot;test@domena.cz&quot;
$SmtpSubject = &quot;Test email from PowerShell&quot;
$SmtpBody = &quot;This is a test email sent from PowerShell script.&quot;

# Create secure credentials
$SmtpSecurePwd = ConvertTo-SecureString $SmtpPass -AsPlainText -Force
$SmtpCreds = New-Object System.Management.Automation.PSCredential ($SmtpUser, $SmtpSecurePwd)

# Send the email
Send-MailMessage -From $SmtpFrom -To $SmtpTo -Subject $SmtpSubject -Body $SmtpBody -SmtpServer $SmtpServer -Port $SmtpPort -Credential $SmtpCreds -UseSsl</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-99e1041 elementor-widget elementor-widget-heading" data-id="99e1041" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">SCRIPT: Odeslání e-mailu pomocí PHP a ACS E-mail</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-b7dd87b elementor-widget elementor-widget-code-block-for-elementor" data-id="b7dd87b" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-php'>&lt;?php
/**
 * Minimal SMTP sender (STARTTLS + AUTH LOGIN) without Composer.
 * Tested with Azure Communication Service SMTP: smtp.azurecomm.net:587
 * Author: www.sraga.cz
 */


// ---------------- Example usage ----------------
try {
    smtp_send([
        &#039;host&#039;      =&gt; &#039;smtp.azurecomm.net&#039;,
        &#039;port&#039;      =&gt; 587,
        &#039;username&#039;  =&gt; &#039;userName@domena.cz&#039;,
        &#039;password&#039;  =&gt; &#039;clientSecretValue&#039;,                 // &larr; store securely (env/secret)
        &#039;from&#039;      =&gt; &#039;mailFromAddress@domena.cz&#039;,
        &#039;from_name&#039; =&gt; &#039;mailFromAddress@domena.cz&#039;,
        &#039;to&#039;        =&gt; &#039;test@domena.cz&#039;,
        &#039;subject&#039;   =&gt; &#039;Test email from PHP&#039;,
        &#039;body&#039;      =&gt; &quot;This is a test email sent from a pure-PHP SMTP client.&quot;,
        &#039;debug&#039;     =&gt; true,                 // set true to see SMTP I/O to STDERR
    ]);
    echo &quot;Email sent OK\n&quot;;
} catch (Throwable $e) {
    // Print a clear error if something goes wrong
    fwrite(STDERR, &quot;SMTP error: &quot; . $e-&gt;getMessage() . &quot;\n&quot;);
    exit(1);
}


// ---------------- Functions ----------------

function smtp_send(array $cfg): void
{
    $host        = $cfg[&#039;host&#039;];          // e.g. smtp.azurecomm.net
    $port        = $cfg[&#039;port&#039;] ?? 587;   // 587 for STARTTLS
    $username    = $cfg[&#039;username&#039;];      // SMTP user (e.g. web@domain.cz)
    $password    = $cfg[&#039;password&#039;];      // SMTP password
    $from        = $cfg[&#039;from&#039;];          // RFC5322 From: email address
    $fromName    = $cfg[&#039;from_name&#039;] ?? &#039;&#039;;   // Display name (optional)
    $to          = $cfg[&#039;to&#039;];            // recipient email
    $subject     = $cfg[&#039;subject&#039;];       // subject (UTF-8 ok)
    $body        = $cfg[&#039;body&#039;];          // plain text body
    $timeout     = $cfg[&#039;timeout&#039;] ?? 30;
    $debug       = $cfg[&#039;debug&#039;] ?? false;

    $peerName = $cfg[&#039;peer_name&#039;] ?? $host; // SNI name for TLS

    $context = stream_context_create([
        &#039;ssl&#039; =&gt; [
            &#039;crypto_method&#039;        =&gt; STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT,
            &#039;verify_peer&#039;          =&gt; true,
            &#039;verify_peer_name&#039;     =&gt; true,
            &#039;peer_name&#039;            =&gt; $peerName,
            // If your OS trust store is standard, no need to set cafile/capath.
            // &#039;cafile&#039;            =&gt; &#039;/etc/ssl/certs/ca-certificates.crt&#039;,
            &#039;SNI_enabled&#039;          =&gt; true,
            &#039;disable_compression&#039;  =&gt; true,
        ],
    ]);

    $fp = stream_socket_client(
        &quot;tcp://$host:$port&quot;,
        $errno,
        $errstr,
        $timeout,
        STREAM_CLIENT_CONNECT,
        $context
    );

    if (!$fp) {
        throw new RuntimeException(&quot;Connect failed: $errno $errstr&quot;);
    }
    stream_set_timeout($fp, $timeout);

    // --- Helpers -------------------------------------------------------------
    $read = function() use ($fp, $debug): array {
        $lines = [];
        while (($line = fgets($fp, 2048)) !== false) {
            $lines[] = rtrim($line, &quot;\r\n&quot;);
            if ($debug) { fwrite(STDERR, &quot;S: $line&quot;); }
            // Multi-line replies have format &quot;123-...&quot; and end on &quot;123 ...&quot; (space)
            if (preg_match(&#039;/^\d{3} /&#039;, $line)) break;
        }
        if (empty($lines)) throw new RuntimeException(&quot;No response from server&quot;);
        $code = (int)substr($lines[count($lines)-1], 0, 3);
        return [$code, $lines];
    };

    $send = function(string $cmd) use ($fp, $debug) {
        if ($debug) { fwrite(STDERR, &quot;C: $cmd\n&quot;); }
        fwrite($fp, $cmd . &quot;\r\n&quot;);
    };

    $expect = function(int $want) use ($read) {
        [$code, $lines] = $read();
        if ($code !== $want) {
            $msg = implode(&quot;\n&quot;, $lines);
            throw new RuntimeException(&quot;Expected $want, got $code\n$msg&quot;);
        }
        return $lines;
    };

    // --- SMTP dialogue -------------------------------------------------------
    $expect(220);                                // 220 greeting
    $ehloName = gethostname() ?: &#039;localhost&#039;;
    $send(&quot;EHLO $ehloName&quot;);
    $expect(250);

    // STARTTLS
    $send(&quot;STARTTLS&quot;);
    $expect(220);                                // Ready to start TLS
    if (!stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT)) {
        throw new RuntimeException(&quot;TLS handshake failed&quot;);
    }

    // Re‑EHLO after STARTTLS
    $send(&quot;EHLO $ehloName&quot;);
    $expect(250);

    // AUTH LOGIN
    $send(&quot;AUTH LOGIN&quot;);
    $expect(334);                                // &quot;VXNlcm5hbWU6&quot; (Username:)
    $send(base64_encode($username));
    $expect(334);                                // &quot;UGFzc3dvcmQ6&quot; (Password:)
    $send(base64_encode($password));
    $expect(235);                                // Auth OK

    // MAIL/RCPT
    $send(&quot;MAIL FROM:&lt;$from&gt;&quot;);
    $expect(250);
    $send(&quot;RCPT TO:&lt;$to&gt;&quot;);
    $expect(250);

    // DATA &ndash; headers + body with dot‑stuffing
    $send(&quot;DATA&quot;);
    $expect(354);

    // Headers
    $headers = [];
    $fromHeader = $fromName !== &#039;&#039;
        ? sprintf(&#039;From: %s &lt;%s&gt;&#039;, encodeDisplayName($fromName), $from)
        : sprintf(&#039;From: &lt;%s&gt;&#039;, $from);
    $headers[] = $fromHeader;
    $headers[] = &quot;To: &lt;$to&gt;&quot;;
    $headers[] = &quot;Subject: &quot; . encodeSubject($subject);
    $headers[] = &quot;Date: &quot; . date(&#039;r&#039;);
    $headers[] = &quot;Message-ID: &lt;&quot; . bin2hex(random_bytes(16)) . &#039;@&#039; . (parse_url(&quot;https://$peerName&quot;, PHP_URL_HOST) ?: &#039;localhost&#039;) . &quot;&gt;&quot;;
    $headers[] = &quot;MIME-Version: 1.0&quot;;
    $headers[] = &quot;Content-Type: text/plain; charset=UTF-8&quot;;
    $headers[] = &quot;Content-Transfer-Encoding: 8bit&quot;;
    $headers[] = &quot;X-Mailer: PHP-SMTP/1.0&quot;;

    $data  = implode(&quot;\r\n&quot;, $headers) . &quot;\r\n\r\n&quot; . $body;

    // Dot‑stuffing per RFC5321 &sect;4.5.2
    $data = preg_replace(&#039;/\r\n\./&#039;, &quot;\r\n..&quot;, $data);
    // Ensure ends with CRLF.CRLF
    if (!str_ends_with($data, &quot;\r\n&quot;)) $data .= &quot;\r\n&quot;;

    fwrite($fp, $data . &quot;.\r\n&quot;);
    $expect(250);                                // accepted

    // QUIT
    $send(&quot;QUIT&quot;);
    $read();                                     // 221
    fclose($fp);
}

/** Encode UTF‑8 display name safely for headers */
function encodeDisplayName(string $name): string {
    // Quote if contains specials; also provide RFC2047 when needed
    if (preg_match(&#039;/[^\x20-\x7E]/&#039;, $name)) {
        return &#039;=?UTF-8?B?&#039; . base64_encode($name) . &#039;?=&#039;;
    }
    if (preg_match(&#039;/[&quot;,]/&#039;, $name)) {
        return &#039;&quot;&#039; . addcslashes($name, &#039;\\&quot;&#039;) . &#039;&quot;&#039;;
    }
    return $name;
}

/** RFC2047 encode UTF‑8 Subject if needed */
function encodeSubject(string $subject): string {
    return preg_match(&#039;/[^\x20-\x7E]/&#039;, $subject)
        ? &#039;=?UTF-8?B?&#039; . base64_encode($subject) . &#039;?=&#039;
        : $subject;
}</code></pre>				</div>
				</div>
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://www.sraga.cz/azure-communication-services-od-a-po-z/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Automatizace skriptů PnP PowerShell &#8211; Azure Automation</title>
		<link>https://www.sraga.cz/automatizace-skriptu-pnp-powershell-azure-automation/</link>
					<comments>https://www.sraga.cz/automatizace-skriptu-pnp-powershell-azure-automation/#respond</comments>
		
		<dc:creator><![CDATA[Miroslav Šraga]]></dc:creator>
		<pubDate>Mon, 22 Apr 2024 15:04:50 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Automation Account]]></category>
		<category><![CDATA[Entra ID]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Managed Identity]]></category>
		<category><![CDATA[PnP PowerShell]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sharepoint Online]]></category>
		<guid isPermaLink="false">https://www.sraga.cz/?p=387</guid>

					<description><![CDATA[Dnes mám pro vás kompletní návod, jak zprovoznit automatické spouštění skriptů v rámci PnP PowerShellu (PnP.PowerShell module), bez nutnosti přihlašování konkrétního uživatele. Co k tomu bude potřeba? Předplatné Microsoft Azure Automation Account Managed Identity PnP PowerShell nainstalovaný lokálně ve vašem počítači Obsah &#160; Proč Azure Automation a ne lokální skripty Dovedu si představit, že nikdo ... <a title="Automatizace skriptů PnP PowerShell &#8211; Azure Automation" class="read-more" href="https://www.sraga.cz/automatizace-skriptu-pnp-powershell-azure-automation/" aria-label="Číst více o Automatizace skriptů PnP PowerShell &#8211; Azure Automation">Číst dál</a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="387" class="elementor elementor-387" data-elementor-post-type="post">
				<div class="elementor-element elementor-element-b939194 e-flex e-con-boxed e-con e-parent" data-id="b939194" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-f008972 elementor-widget elementor-widget-text-editor" data-id="f008972" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Dnes mám pro vás kompletní návod, jak zprovoznit automatické spouštění skriptů v rámci PnP PowerShellu (PnP.PowerShell module), bez nutnosti přihlašování konkrétního uživatele. Co k tomu bude potřeba?</p><ul><li>Předplatné Microsoft Azure</li><li>Automation Account</li><li>Managed Identity</li><li>PnP PowerShell nainstalovaný lokálně ve vašem počítači</li></ul>								</div>
				</div>
				<div class="elementor-element elementor-element-35cfe69 elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents" data-id="35cfe69" data-element_type="widget" data-settings="{&quot;exclude_headings_by_selector&quot;:[],&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}" data-widget_type="table-of-contents.default">
				<div class="elementor-widget-container">
									<div class="elementor-toc__header">
						<h4 class="elementor-toc__header-title">
				Obsah			</h4>
										<div class="elementor-toc__toggle-button elementor-toc__toggle-button--expand" role="button" tabindex="0" aria-controls="elementor-toc__35cfe69" aria-expanded="true" aria-label="Open table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></div>
				<div class="elementor-toc__toggle-button elementor-toc__toggle-button--collapse" role="button" tabindex="0" aria-controls="elementor-toc__35cfe69" aria-expanded="true" aria-label="Close table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-up" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg></div>
					</div>
				<div id="elementor-toc__35cfe69" class="elementor-toc__body">
			<div class="elementor-toc__spinner-container">
				<svg class="elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading" aria-hidden="true" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><path d="M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z"></path></svg>			</div>
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-45f24a1 elementor-widget elementor-widget-heading" data-id="45f24a1" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Proč Azure Automation a ne lokální skripty</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-9421bb5 elementor-widget elementor-widget-text-editor" data-id="9421bb5" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span data-contrast="auto">Dovedu si představit, že nikdo nechce provádět reporty ručně. Důvodů, proč takovou věc automatizovat vidím hned několik:</span> </p><ol><li data-aria-posinset="1" data-aria-level="2"><span data-contrast="auto"><strong>Nechci se</strong> o spouštění reportů <strong>starat</strong> a nebo delegovat to na jiné uživatele</span> </li><li data-aria-posinset="2" data-aria-level="2"><span data-contrast="auto">Nechci uživatelům udělovat oprávnění a vytvářet prostor pro chybu nebo zneužití</span> </li><li data-aria-posinset="3" data-aria-level="2"><span data-contrast="auto"><strong>Chci si hlídat úroveň oprávnění</strong>, kteoru jednotlivým úkonům uděluji, pokud skript pracuje jen se SharePointem, nechci udělovat oprávnění na jinou komponentu systému, třeba na Planner a podobně</span> </li><li data-aria-posinset="4" data-aria-level="2"><span data-contrast="auto">Chci <strong>mít nad systémem kontrolu</strong> a chci mít přehled o tom, jak jednotlivé úlohy dopadly. Nechci spoléhat na to, že delegovaný uživatel daný úkon provede</span></li><li data-aria-posinset="5" data-aria-level="2"><span data-contrast="auto">S ohledem na přechozí body, nechci takovou věc obecně vůbec <strong>spouštět v kontextu uživatele</strong>, který má uživatelské jméno a heslo a lze se k němu jednouše přihásit, chci nějakou <strong>formu systémového účtu</strong></span></li></ol><p>Ruční spouštění skriptů je dobré tam, kde potřebujete jednorázový export nebo report. Pokud ale potřebujete reporty pravidelně, dříve či později se budete snažit skripty automatizovat. První, o co se budete pokoušet, jak skript spustit pomocí plánovače, třeba Task Scheduleru a jak jej spustit pod oprávněním konkrétního uživatele, nejprve to budete zkoušet pod svým účtem, později možná, v lepším případě, vytvoříte servisní účet, kterému třeba i budete muset pořídit licenci. A když nemáte rozpočet, skončí to tak, že skrip, pokud se to vůbec podaří nasadit, bude běžet pod vaším účtem do doby, než z organizace odejdete a možná i po té.</p><p>Z výše uvedeného plyne, že daleko rozumnější je použít &#8222;nějakou formu&#8220; účtu, který není uživatelem. Ve světe Microsoftu se tomu říká <strong>Managed Identity</strong>. A pokud se tato identita dá rovnou zkombinovat s procesem, který bude skritpy pravidelně spouštět (<strong>Automation Accounts</strong>), tak máte pohodlné a bezpečené řešení.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-e1be934 elementor-alert-info elementor-widget elementor-widget-alert" data-id="e1be934" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Azure Automation Account</span>
			
						<span class="elementor-alert-description"> je služba, poskytovaná prostřednictvím Microsot Azure, která umožňuje automatizovat a plánovat různé úkoly a procesy v rámci vašeho prostředí Azure a ale mimo něj. </span>
			
						<button type="button" class="elementor-alert-dismiss" aria-label="Zavřít toto upozornění.">
									<span aria-hidden="true">&times;</span>
							</button>
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-e8cc9e9 elementor-widget elementor-widget-heading" data-id="e8cc9e9" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Vytvoření Azure Automation Account</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-34ed57c elementor-widget elementor-widget-text-editor" data-id="34ed57c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Na <a href="https://portal.azure.com" target="_blank" rel="noopener">portále pro správu Microsoft Azure</a> si najděte <strong>(1)</strong> službu Automation Accounts <strong>(2)</strong> a zvolte vytvořit nový účet <strong>(3)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-7836e09 elementor-widget elementor-widget-image" data-id="7836e09" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts1" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDE5LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czEucG5nIn0%3D">
							<img fetchpriority="high" decoding="async" width="768" height="372" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1-768x372.png" class="attachment-medium_large size-medium_large wp-image-419" alt="Azure portal - Automation Accounts" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1-768x372.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1-300x145.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1-1024x496.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1-1536x744.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts1.png 1913w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-67ff30a elementor-widget elementor-widget-image" data-id="67ff30a" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts2.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts2" data-elementor-lightbox-description="Azure portal - Automation Accounts" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDE4LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czIucG5nIn0%3D">
							<img decoding="async" width="768" height="223" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts2-768x223.png" class="attachment-medium_large size-medium_large wp-image-418" alt="Azure portal - Automation Accounts" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts2-768x223.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts2-300x87.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts2.png 915w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-37e47ef elementor-widget elementor-widget-text-editor" data-id="37e47ef" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>(4)</strong> Vyberte, do kterého <strong>předplatného</strong> chcete automatizaci nasadit. Toto je důležité, protože se jedná o sice levnou, ale zpoplatněnou službu.</p><p><strong>(5)</strong> Zvolte, do jaké <strong>skupiny prostředků</strong> chcete službu přiřadit nebo vytvořte novou Resource group. Já vytvářím novou Resource Group s názvem &#8222;automation-rg&#8220; a do této skupiny budu do budoucna dávat všechny prostředky, které se týkají automatizace.</p><p><strong>(6)</strong> Zvolte <strong>název</strong> pro automatizační účet. Tady pozor, budeme vytvářed také takzvadnou Spravovanou Identitu, která je v Entra ID reprezetována jako <strong>Enteprise aplikace</strong> s tímto názvem, tak zvolte takový název, abyste se v tom potom vyznali. Já dávám na konec názvu suffix &#8222;aa&#8220; jako automation account.</p><p><strong>(7)</strong> Jako <strong>region</strong> vyberu West Europe, ale vy si samozřejmě zvolte region dle vašich preferencí. Teď je hodně populární třeba Polsko.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-b056bac elementor-widget elementor-widget-image" data-id="b056bac" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts3.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts3" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDE3LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czMucG5nIn0%3D">
							<img decoding="async" width="768" height="513" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts3-768x513.png" class="attachment-medium_large size-medium_large wp-image-417" alt="Azure portal - Automation Accounts" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts3-768x513.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts3-300x200.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts3.png 803w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-99976ef elementor-widget elementor-widget-text-editor" data-id="99976ef" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokračujte kliknutím na tlačítko <strong>Next</strong>.</p><p>V dalším kroku se průvodce ptá, za chci vytvořit Managed Identity a mám na výběr System assigned a User Assigned.</p><p>V tomto případě zvolím <strong>System assigned (8)</strong> a jdu na další kroky.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-e6c0537 elementor-widget elementor-widget-image" data-id="e6c0537" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts4.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts4" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDE2LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czQucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="387" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts4-768x387.png" class="attachment-medium_large size-medium_large wp-image-416" alt="Portal Azure - Automation Accounts - Managed Identity" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts4-768x387.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts4-300x151.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts4.png 816w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-d720124 elementor-alert-info elementor-widget elementor-widget-alert" data-id="d720124" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Azure Managed Identity</span>
			
						<span class="elementor-alert-description">je služba, která poskytuje automaticky (systémem) spravovanou identitu v Microsoft Entra ID pro aplikace, které se používají pro připojení k prostředkům, které podporují autentizaci vůči Microsoft Entra. Výhodou je, že nemusíte nijak spravovat hesla, pověření, certifikáty nebo klíče, které se jinak používají k zabezpečení komunikace mezi službami. Funguje to tak, že Aplikace využije tuto Managed Identity k získání tokenu Microsoft Entra bez nutnosti řešit jakékoliv pověření. Velmi jednoduše řečeno, jedná se o systémový účet. </span>
			
						<button type="button" class="elementor-alert-dismiss" aria-label="Zavřít toto upozornění.">
									<span aria-hidden="true">&times;</span>
							</button>
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-51f3fdf elementor-widget elementor-widget-text-editor" data-id="51f3fdf" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Následující krok se týká <a href="https://learn.microsoft.com/en-us/azure/automation/quickstarts/create-azure-automation-account-portal?WT.mc_id=Portal-Microsoft_Azure_Automation#networking" target="_blank" rel="noopener">Networkingu</a>. Máte možnost zvolit si, zda li chcete k prostředkům přistupovat privátně (z vnitřní sítě) nebo pomocí veřejného internetu.</p><p><strong>Privátní přístup</strong> &#8211; tato možnost poskytuje Automation Accountu privátní koncový bod (Private endpoint),  který používá <strong>privátní IP adresu z vaší virtuální sítě</strong>. Povolením privátního koncového bodu <strong>přenesete službu do <span style="text-decoration: underline;">své virtuální</span> sítě</strong>. Jedná se o doporučenou konfiguraci z hlediska zabezpečení; vyžaduje však konfiguraci Hybrid Runbook Worker připojeného k virtuální síti Azure a v současné době nepodporuje cloudové úlohy.</p><p>V mém případš tedy zvolím <strong>Public access</strong> a přejdu na další krok.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-abd9e7f elementor-widget elementor-widget-image" data-id="abd9e7f" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts5.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts5" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDE1LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czUucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="758" height="446" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts5.png" class="attachment-medium_large size-medium_large wp-image-415" alt="Azure Portal - Automation Account" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts5.png 758w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts5-300x177.png 300w" sizes="(max-width: 758px) 100vw, 758px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-a097afb elementor-widget elementor-widget-text-editor" data-id="a097afb" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V produkčním prostředí doporučuju věnovat pozornout Tagům a pro přeheldnost tagy používat. Já osobně do tagů běžně dávám tyto informace:</p><ul><li>Prostředí: produkční / testovací</li><li>Business owner &#8211; kdo konzumuje výslednou službu</li><li>Technical owner &#8211; kdo se o službu stará technicky</li><li>Nekdy případně ještě třeba středisko, oddělení, nákladové středisko apod.</li></ul>								</div>
				</div>
				<div class="elementor-element elementor-element-1bbbc86 elementor-widget elementor-widget-image" data-id="1bbbc86" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts6.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts6" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDE0LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czYucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="497" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts6-768x497.png" class="attachment-medium_large size-medium_large wp-image-414" alt="Portal Azutr - Automation Accounts - tags" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts6-768x497.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts6-300x194.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts6.png 807w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-dc6b4ce elementor-widget elementor-widget-text-editor" data-id="dc6b4ce" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokračuji dál na poslední část průvodce a to je <strong>Validace</strong>.</p><p>Pokud validace prošla, klikněte na tlačítko Vytvořit, pokud neprošla, opravte chyby.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-8dd0aba elementor-widget elementor-widget-image" data-id="8dd0aba" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts7.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts7" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDEzLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czcucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="195" height="300" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts7-195x300.png" class="attachment-medium size-medium wp-image-413" alt="Azure Portal - Automation Accounts" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts7-195x300.png 195w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts7.png 600w" sizes="(max-width: 195px) 100vw, 195px" />								</a>
															</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-4f3d156 e-flex e-con-boxed e-con e-parent" data-id="4f3d156" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-619dff4 elementor-widget elementor-widget-text-editor" data-id="619dff4" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Je potřeba počkat, než se celá služba nasadí. Až bude hotovo, lze <strong>přejít na detail služby</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-e591543 elementor-widget elementor-widget-image" data-id="e591543" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts8.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts8" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDEyLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czgucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="251" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts8-768x251.png" class="attachment-medium_large size-medium_large wp-image-412" alt="Azure Automation Accounts" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts8-768x251.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts8-300x98.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts8-1024x334.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts8.png 1394w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-a236495 elementor-widget elementor-widget-heading" data-id="a236495" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Instalace PowerShell modulu: Pnp.PowerShell</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-4511e21 e-flex e-con-boxed e-con e-parent" data-id="4511e21" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-b678f2a elementor-widget elementor-widget-text-editor" data-id="b678f2a" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Protože potřebujeme pracovat s PnP Powershell Modulem, musíme jej do automatizace nejprve přidat, protože není její nativní součástí.</p><p>V levém menu přejděte do sekce <strong>Modules (9)</strong> a klikněte na tlačítko <strong>Přidat modul (10)</strong></p>								</div>
				</div>
				<div class="elementor-element elementor-element-5157f8f elementor-widget elementor-widget-image" data-id="5157f8f" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts9" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDU0LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czkucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="275" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9-768x275.png" class="attachment-medium_large size-medium_large wp-image-454" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9-768x275.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9-300x107.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9-1024x366.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9-1536x549.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts9.png 1880w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-d61e8aa elementor-widget elementor-widget-text-editor" data-id="d61e8aa" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>PnP.Powershell</strong> sice není nativní součástí Automation Accounts, ale je k dispozici v Galerii, takže vyberte <strong>Browse fom gallery (11)</strong> a otevřete galerii pomocí odkazu <strong>Click here to browse from gallery (12)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-9f4ce6e elementor-widget elementor-widget-image" data-id="9f4ce6e" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts10.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts10" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDUzLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czEwLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="464" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts10-768x464.png" class="attachment-medium_large size-medium_large wp-image-453" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts10-768x464.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts10-300x181.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts10.png 903w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-ab8cb1f elementor-widget elementor-widget-text-editor" data-id="ab8cb1f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Do vyhledávcího okna zadejte &#8222;<strong>PnP</strong>&#8222;. Těch modulů, které se nabízí je hned několik.</p><p>Klikněte na ten s názvem <strong>PnP.PowerShell (13)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-6715f27 elementor-widget elementor-widget-image" data-id="6715f27" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts11" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDUyLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czExLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="312" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11-768x312.png" class="attachment-medium_large size-medium_large wp-image-452" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11-768x312.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11-300x122.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11-1024x416.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11-1536x624.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts11.png 1617w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-7f278dd elementor-widget elementor-widget-text-editor" data-id="7f278dd" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V dalším okně jen potvrďte výběr modulu, kliknutím na tlačítko <strong>Select (14)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-759f6dc elementor-widget elementor-widget-image" data-id="759f6dc" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts12" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDUxLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czEyLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="451" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12-768x451.png" class="attachment-medium_large size-medium_large wp-image-451" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12-768x451.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12-300x176.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12-1024x601.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12-1536x902.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts12.png 1564w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-3c1cb51 elementor-widget elementor-widget-text-editor" data-id="3c1cb51" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Systém vás vrátí do původního okna. Pro správný chod modulu, zvolte <strong>Runtime version: 7.2 (15)</strong>.</p><p>Pokračujte kliknutím na tlačítko <strong>Import (16)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-6f39e18 elementor-widget elementor-widget-image" data-id="6f39e18" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="900" height="913" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts13.png" class="attachment-large size-large wp-image-450" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts13.png 905w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts13-296x300.png 296w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts13-768x779.png 768w" sizes="(max-width: 900px) 100vw, 900px" />															</div>
				</div>
				<div class="elementor-element elementor-element-621f11f elementor-widget elementor-widget-text-editor" data-id="621f11f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Teď nastává chvíle čekání, protože je potřeba počkat, až se modul naimportuje, což může trvat klidně i 10 minut. Tento proces nejde urychlit a musí se vyčekat.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-823587c elementor-widget elementor-widget-image" data-id="823587c" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts14.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts14" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDQ5LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czE0LnBuZyJ9">
							<img loading="lazy" decoding="async" width="463" height="183" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts14.png" class="attachment-medium_large size-medium_large wp-image-449" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts14.png 463w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts14-300x119.png 300w" sizes="(max-width: 463px) 100vw, 463px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-dba525c elementor-widget elementor-widget-text-editor" data-id="dba525c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Ze začátku ten modul vůbec nebude vidět v seznamu, pak se objeví se stavem Importing a nakonec se jeho stav změní na Available.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-c762244 elementor-widget elementor-widget-image" data-id="c762244" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts15" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDQ4LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czE1LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="186" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15-768x186.png" class="attachment-medium_large size-medium_large wp-image-448" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15-768x186.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15-300x73.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15-1024x248.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15-1536x372.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts15.png 1914w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-d96bdf7 elementor-widget elementor-widget-image" data-id="d96bdf7" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts16.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts16" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDQ3LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czE2LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="279" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts16-768x279.png" class="attachment-medium_large size-medium_large wp-image-447" alt="Azure Automation Accounts - Modules" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts16-768x279.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts16-300x109.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts16-1024x373.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts16.png 1094w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-2b5df69 elementor-widget elementor-widget-heading" data-id="2b5df69" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Managed Identity / Entra ID Enterprise application</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-7599132 elementor-widget elementor-widget-text-editor" data-id="7599132" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Když je PowerShell modul naimportovaný, lze přejít do sekce <strong>Identity</strong>.</p><p>Zkontrolujte, že je u System Assigned identity stav &#8222;Zapnuto&#8220; a rovnou si můžete zkopírovat <strong>Object ID</strong>, což je zároveň <strong>Client ID Enterprise aplikace</strong>, které se zaregistrovala v Entře.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-69ffc36 elementor-widget elementor-widget-image" data-id="69ffc36" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts17.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts17" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDcxLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czE3LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="427" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts17-768x427.png" class="attachment-medium_large size-medium_large wp-image-471" alt="Azure - Automation Accounts - Identity" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts17-768x427.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts17-300x167.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts17-1024x569.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts17.png 1093w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-27e59a0 elementor-widget elementor-widget-text-editor" data-id="27e59a0" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Ještě si pro kontrolu otevřete <a href="https://entra.microsoft.com/#view/Microsoft_AAD_IAM/StartboardApplicationsMenuBlade/~/AppAppsPreview" target="_blank" rel="noopener">entra.microsoft.com</a> a přejděte do <strong>Enterpeise Applications (19)</strong> a upravte si filtr zobrazení, případně použijte <strong>vyhledávání (20)</strong>.</p><p>Měla by se nabídnout aplikace, kterí bude mít stejný název, jako nově vytvořený Automation Account. </p><p>Pokud jste instalovali také lokální modul PnP PowerShellu a udělili jste této aplikaci  tzv. Consent, tak uvidíte v seznamui také aplikaci, která se jmenuje <strong>PnP Management Shell.</strong> To je aplikace, kterou jsem zaregistroval automaticky při instalaci PnP modulu do svého počítače.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-dcea862 elementor-widget elementor-widget-image" data-id="dcea862" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts18.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts18" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDcwLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czE4LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="296" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts18-768x296.png" class="attachment-medium_large size-medium_large wp-image-470" alt="Entra ID - Enterprise Applications" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts18-768x296.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts18-300x116.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts18-1024x395.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts18.png 1483w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-ac680f8 elementor-widget elementor-widget-text-editor" data-id="ac680f8" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Když aplikaci otevřete a přejdete do sekce<strong> Permissions (21)</strong>, uvidíte, že aplikace zatím nemá žádná oprávnění. Stránka s přidělenými oprávněními, je prázdná.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-87834b1 elementor-widget elementor-widget-image" data-id="87834b1" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts19" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDc1LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czE5LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="292" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19-768x292.png" class="attachment-medium_large size-medium_large wp-image-475" alt="Entra ID - Enterprise Applications - Permissions" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19-768x292.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19-300x114.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19-1024x390.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19-1536x584.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts19.png 1887w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-e7fcbc8 elementor-widget elementor-widget-heading" data-id="e7fcbc8" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Udělení oprávnění pro Managed Identity (Enterprise application)</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-99b42d6 elementor-widget elementor-widget-text-editor" data-id="99b42d6" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><a href="https://portal.azure.com/" target="_blank" rel="noopener">Azure Portál</a> a <a href="https://entra.microsoft.com/" target="_blank" rel="noopener">Entra ID</a> necháme chvíli stranou.</p><p>Teď je potřeba <strong>vytvořené identitě</strong>, která je reprezentovaná v Entra ID prostřednictvím Enterprise aplikace, <strong>přidělit oprávnění</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-aa98f17 elementor-alert-warning elementor-widget elementor-widget-alert" data-id="aa98f17" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">K zamyšlení</span>
			
						<span class="elementor-alert-description">doporučuji, se nejprve zamyslet, jaká práva je potřeba té aplikaci udělit.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-a9ba85f elementor-widget elementor-widget-text-editor" data-id="a9ba85f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud registrujete aplikace na svém počítačí při instalaci PnP modulu, tak tento modul si udělí sám veškerá potřebná oprávnění (po schválení Globálním správcem). My jsme ale v situaci, kdy nechceme, aby náš automatizovaný skript, měl práva úplně na vše, ale jen na konkrétní úkony. Třeba jen pro práci s Plannerem, nebo s Entrou nebo se SharePointem a třeba jen ke čtení.</p><p><strong>Abych mohl práva přidělit, musím vědět, co má skript dělat, kam potřebuje sahat a také, jak ta oprávnění identifikovat v systému.</strong></p><p>Nyní je tedy potřeba se přesunout do lokálního prostředí a spustit si prostředí <a href="https://www.sraga.cz/instalace-powershell-7/" target="_blank" rel="noopener">PowerShell verze 7</a>.</p><p><em>Předpokládejme, že víte, co má Váš automatizovaný skript dělat a jaká potřebuje oprávnění, ale nevíte, jak oprávnění fakticky přidělit.</em></p><p>K tomu zde mám sadu několika příkazů, kterými si lze trochu pomoci.</p><p>1. Nejprve se připojde k PnP pomocí příkazu <a href="https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html" target="_blank" rel="noopener">Connect-PnPOnline</a></p><p>Já už rovnou přidávám i parametru -Url, protože se chci připojik ke konkrétní knihovně, nad kterou mohu dělat další testy.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-b4b7aba elementor-widget elementor-widget-code-block-for-elementor" data-id="b4b7aba" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Connect-PnPOnline -Url &quot;https://sragacz.sharepoint.com/sites/Kvalitaabazpenost&quot; -Interactive</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-1212544 elementor-widget elementor-widget-text-editor" data-id="1212544" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>2. Pomocí příkazů níže, lze <strong>identifikovat, jaká konkrétní oprávnění lze Enteprise Aplikaci udělit</strong>. Parametr -BuiltInType identifikuje, o jakou komponentu nebo službu se jedná, například MicrosoftGraph nebo SharePointOnline. Analogicky si lze vypsat dostupná oprávnění pro jakoukoliv komponentu ekosystému Microsoft 365.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-1e633e1 elementor-widget elementor-widget-code-block-for-elementor" data-id="1e633e1" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Get-PnPAzureADServicePrincipal -BuiltInType MicrosoftGraph | Get-PnPAzureADServicePrincipalAvailableAppRole
Get-PnPAzureADServicePrincipal -BuiltInType SharePointOnline | Get-PnPAzureADServicePrincipalAvailableAppRole</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-c64f7bc elementor-widget elementor-widget-text-editor" data-id="c64f7bc" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Výstupem z uvedených příkazů je seznam dostupných oprávnění pro danou komponentu. Přičemž důležité jsou tyto hodnoty:</p><ul><li><strong>Value</strong> &#8211; identifikátor daného oprávnění. Tato hodnota se používá v dalších příkazech</li><li><strong>DisplayName</strong> &#8211; název oprávnění, který je reprezentován zejména v Entra ID v sekci Permissions</li><li><strong>Description</strong> &#8211; popis toho, co dané oprávnění umožňuje</li></ul><p> </p>								</div>
				</div>
				<div class="elementor-element elementor-element-aa8af04 elementor-widget elementor-widget-image" data-id="aa8af04" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts20.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts20" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDg4LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czIwLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="157" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts20-768x157.png" class="attachment-medium_large size-medium_large wp-image-488" alt="Get-PnPAzureADServicePrincipal" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts20-768x157.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts20-300x61.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts20.png 792w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-c9df097 elementor-widget elementor-widget-text-editor" data-id="c9df097" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud umíte identifikovat všechna potřebná oprávnění, je na čase oprávnění udělit.</p><p>Budete potřebovat <strong>Object ID</strong> vytvořené Enterprise aplikace. Toto získáte v sekci Identity v detailu Automation Accountu (krok 18) a nebo v detailu Enterprise aplikace.</p><p>Pro udělení oprávnění požijte příkaz <a href="https://pnp.github.io/powershell/cmdlets/Add-PnPAzureADServicePrincipalAppRole.html" target="_blank" rel="noopener">Add-PnPAzureADServicePrincipalAppRole</a></p>								</div>
				</div>
				<div class="elementor-element elementor-element-a2c470c elementor-widget elementor-widget-code-block-for-elementor" data-id="a2c470c" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Add-PnPAzureADServicePrincipalAppRole -Principal &quot;4e9d609b-f963-xxxx-xxxx-f03bf038ec4d&quot; -AppRole &quot;User.ReadWrite.All&quot; -BuiltInType MicrosoftGraph
Add-PnPAzureADServicePrincipalAppRole -Principal &quot;4e9d609b-f963-xxxx-xxxx-f03bf038ec4d&quot; -AppRole &quot;Sites.FullControl.All&quot; -BuiltInType SharePointOnline</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-119faa1 elementor-widget elementor-widget-text-editor" data-id="119faa1" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Parametr <strong>AppRole</strong> obsahuje hodnotu Value, kterou jsme získali pomocí předchozího příkazu (identifikátor oprávnění)</p><p>Parametr <strong>BuiltInType</strong> identifikute danou komponentu / službu.</p><p>Parametr <strong>Principal</strong> obsahuje Object ID Enterprise aplikace, nebo její název, doporučuji ale používat Object ID.</p><p>Výsledek operace lze snadno zkontrolovat v Entra ID, konkrétně v detailu Enterprise aplikace, v sekci Permissions. V detailu aplikace by měla být vidět jen tak oprávnění, která byla udělena v předchozích krocích.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-deb0286 elementor-widget elementor-widget-image" data-id="deb0286" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts21" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDkyLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czIxLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="154" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21-768x154.png" class="attachment-medium_large size-medium_large wp-image-492" alt="Entra ID - Enterprise Applications - Permissions" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21-768x154.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21-300x60.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21-1024x205.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21-1536x308.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts21.png 1568w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-7a42fd4 elementor-widget elementor-widget-heading" data-id="7a42fd4" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Vytvoření skriptu [Runbooks]</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-b73c7d6 elementor-widget elementor-widget-text-editor" data-id="b73c7d6" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Řekněme, že máme rámcově přidělená oprávnění, která pro skript potřebjeme. Zbývá tedy vůbec ten skript vytvořit. A k tomu použijeme tzv. <a href="https://learn.microsoft.com/en-us/azure/automation/automation-runbook-types?tabs=lps72%2Cpy10#powershell-runbooks" target="_blank" rel="noopener">Runbook</a>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-91532e4 elementor-alert-info elementor-widget elementor-widget-alert" data-id="91532e4" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Runbooks</span>
			
						<span class="elementor-alert-description">Rubbooky jsou knihovny, založené na prostředí Windows PowerShell (nebo Python, ale o tom jindy). Kód runbooku můžete upravovat přímo pomocí textového editoru na Azure portálu. Můžete také použít libovolný offline textový editor a skripty do Azure Automation importovat.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-4a58628 elementor-widget elementor-widget-text-editor" data-id="4a58628" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Vraťte se na Azure portál a v detailu Automation Accountu přejděte do nabídky <strong>Runbooks (22)</strong>. Pro vytvoření nového Runbooku klikněte na tlačítko &#8222;<strong>Create a Rubnook</strong>&#8220; <strong>(23)</strong>.</p><p><em>Runbooky jsou vlastně skripty, nebo knihovy skriptů, které chci spouštět, ať už ručně nebo automaticky.</em></p>								</div>
				</div>
				<div class="elementor-element elementor-element-8b7cdab elementor-widget elementor-widget-image" data-id="8b7cdab" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts22" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTAwLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czIyLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="245" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22-768x245.png" class="attachment-medium_large size-medium_large wp-image-500" alt="Azure - Automation Accounts - Runbooks" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22-768x245.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22-300x96.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22-1024x327.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22-1536x491.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts22.png 1543w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-a0fe87c elementor-widget elementor-widget-text-editor" data-id="a0fe87c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V následující kroku vyplňte všechna povinná pole <strong>(24)</strong>.</p><ul><li>Jako typ zvolte: Powershell</li><li>Runtive version: 7.2</li><li>Description: doporučuji používat popisy, aby se ve skriptech vyznali i ti, kteří přijdou po vás.</li></ul><p>Pokud jste vše vyplnili správně, <strong>Vytvořte runbook (25)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-d45a2e9 elementor-widget elementor-widget-image" data-id="d45a2e9" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts23.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts23" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NDk5LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czIzLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="827" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts23-768x827.png" class="attachment-medium_large size-medium_large wp-image-499" alt="Azure - Automation Accounts - Runbooks" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts23-768x827.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts23-279x300.png 279w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts23.png 850w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-cfaabb0 elementor-widget elementor-widget-image" data-id="cfaabb0" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts24.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts24" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTA0LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czI0LnBuZyJ9">
							<img loading="lazy" decoding="async" width="639" height="929" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts24.png" class="attachment-medium_large size-medium_large wp-image-504" alt="Azure - Automation Accounts - Runbooks" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts24.png 639w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts24-206x300.png 206w" sizes="(max-width: 639px) 100vw, 639px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-e7c14e8 elementor-widget elementor-widget-text-editor" data-id="e7c14e8" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Runbook je vytvořený. Nyní můžete <strong>vytvořit Váš skript (24)</strong>. </p><p>Jakmile máte skript připravený, můžete jej otestovat kliknutím na tlačítko <strong>Test pane (25)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-0648d9e elementor-widget elementor-widget-image" data-id="0648d9e" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts25.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts25" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTA4LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czI1LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="280" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts25-768x280.png" class="attachment-medium_large size-medium_large wp-image-508" alt="Edit PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts25-768x280.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts25-300x109.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts25-1024x374.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts25.png 1458w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-4c28a74 elementor-widget elementor-widget-text-editor" data-id="4c28a74" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V následující okně je potřeba skript ještě spustit pomocí tlačítka<strong> Start (26)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-bcc8291 elementor-widget elementor-widget-image" data-id="bcc8291" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts26.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts26" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTA5LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czI2LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="410" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts26-768x410.png" class="attachment-medium_large size-medium_large wp-image-509" alt="Test PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts26-768x410.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts26-300x160.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts26-1024x546.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts26.png 1076w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-a9a2d37 elementor-widget elementor-widget-text-editor" data-id="a9a2d37" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Po té, co sktipt doběhne, zobrazí se informace &#8222;Completed&#8220; a v okne budou zobrazeny výstupy skriptu. Pokud skript žádné výstupy nemá, bude okno prázdné.</p><p>Po dokončení testování je možné okno zavřít křížkem v pravé horní části okna.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-04e18e1 elementor-widget elementor-widget-image" data-id="04e18e1" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts27" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTEwLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czI3LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="343" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27-768x343.png" class="attachment-medium_large size-medium_large wp-image-510" alt="Test PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27-768x343.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27-300x134.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27-1024x457.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27-1536x686.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts27.png 1928w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-b0b2fcc elementor-widget elementor-widget-text-editor" data-id="b0b2fcc" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>Všechny úpravy je potřeba vždy uložit kliknutím na tlačítko Publish</strong>. Pokud změny tzv. nepublikujete, bude platná vždy předchozí verze skriptu.<br /></p>								</div>
				</div>
				<div class="elementor-element elementor-element-e667b2c elementor-widget elementor-widget-image" data-id="e667b2c" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="900" height="329" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts28-1024x374.png" class="attachment-large size-large wp-image-514" alt="Publish PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts28-1024x374.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts28-300x109.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts28-768x280.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts28.png 1458w" sizes="(max-width: 900px) 100vw, 900px" />															</div>
				</div>
				<div class="elementor-element elementor-element-3a13b18 elementor-widget elementor-widget-text-editor" data-id="3a13b18" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud se s prostředím Azure a PnP teprve seznamujete, chcete si výstupy vyzkoušet a ještě nemáte vlastní skripty, můžete použít příkazy níže, které jsou zcela nezávadné. </p><p>První příkaz načte informace o SharePoint webu a další dva se postarají o výpis administrátorů Site Collection. Pro ověření funkčnosti Automation Accountu a pochopení principů to stačí.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-1d8c131 elementor-alert-warning elementor-widget elementor-widget-alert" data-id="1d8c131" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Upozornění</span>
			
						<span class="elementor-alert-description">Všimněte si, že u příkazi Connect-PnPOnline je použit parametr -ManagedIdentity, ktežto když spouštíte stejný příkaz lokálně z počítače, používáte parametr -Interactive</span>
			
						<button type="button" class="elementor-alert-dismiss" aria-label="Zavřít toto upozornění.">
									<span aria-hidden="true">&times;</span>
							</button>
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-4cd1115 elementor-widget elementor-widget-code-block-for-elementor" data-id="4cd1115" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Connect-PnPOnline -Url &quot;https://sragacz.sharepoint.com/sites/Kvalitaabazpenost&quot; -ManagedIdentity

$Web = Get-PnPWeb 
$Web 

$SiteAdmins = Get-PnPSiteCollectionAdmin 
$SiteAdmins 

$SiteCollectionAdmins = ($SiteAdmins | Select -ExpandProperty Title) -join &quot;,&quot; 
$SiteCollectionAdmins</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-29f9bad elementor-widget elementor-widget-heading" data-id="29f9bad" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Pravidelné spouštění skriptů (runbooků)</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-42ff7b1 elementor-widget elementor-widget-text-editor" data-id="42ff7b1" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Když jsou skripty funkční, zbývý poslední fáze. Určitě chcete, aby se <strong>skript spouštěl pravidělně</strong>. Takže v levém menu přejděte na <strong>Schedules (27)</strong> a přidejte <strong>nový časový plán (28)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-52acb08 elementor-widget elementor-widget-image" data-id="52acb08" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts29.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts29" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTIzLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czI5LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="354" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts29-768x354.png" class="attachment-medium_large size-medium_large wp-image-523" alt="Schedule PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts29-768x354.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts29-300x138.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts29-1024x472.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts29.png 1205w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-3fc9e5d elementor-widget elementor-widget-text-editor" data-id="3fc9e5d" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V dalším okně je potřeba &#8222;napárovat&#8220; daný Rubnook na časový plán. Klikněte na <strong>Link a schedule to your runbook (29).</strong></p><p><em>Pozn.: Lze jít také cestou, že si nejprve vytvoříte časové plány na úrovni Automation Accountu a nikoliv zde v detailu Rubnooku.</em></p>								</div>
				</div>
				<div class="elementor-element elementor-element-248d066 elementor-widget elementor-widget-image" data-id="248d066" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts30.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts30" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTIyLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czMwLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="246" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts30-768x246.png" class="attachment-medium_large size-medium_large wp-image-522" alt="Schedule PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts30-768x246.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts30-300x96.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts30.png 938w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-6bf66ee elementor-widget elementor-widget-text-editor" data-id="6bf66ee" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>Přidejte nový časový plán (30)<br /></strong></p>								</div>
				</div>
				<div class="elementor-element elementor-element-bd7549e elementor-widget elementor-widget-image" data-id="bd7549e" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts31.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts31" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTIxLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czMxLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="299" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts31-768x299.png" class="attachment-medium_large size-medium_large wp-image-521" alt="Schedule PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts31-768x299.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts31-300x117.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts31.png 861w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-c764ec2 elementor-widget elementor-widget-text-editor" data-id="c764ec2" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V pravém okně vyplňte <strong>(31)</strong> název časového plánu, já mám v příkladu &#8222;Denně&#8220;, protože pro ukázku nastavím opakující se denní spouštění skriptu. Určitě opět doporučuji vyplňit také <strong>popis</strong>.</p><p>Zvolte <strong>datum a čas</strong> prvního spuštění a také <strong>časovou zónu</strong>, pro kterou jsou časy platné.</p><p>Pro <strong>pravidelné opakování</strong> přepněte přepínač <strong>Recurrence (32)</strong> do polohy Recurring.</p><p>Následně zvolte četnost opakování a případný konec opakování (Set expiration).</p><p>Pokud jsou všechny údaje v pořádku, klikněte na tlačítko <strong>Vytvořit (33)</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-6e24af9 elementor-widget elementor-widget-image" data-id="6e24af9" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts32" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTIwLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czMyLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="372" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32-768x372.png" class="attachment-medium_large size-medium_large wp-image-520" alt="Schedule PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32-768x372.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32-300x145.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32-1024x495.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32-1536x743.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts32.png 1914w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-f88b86f elementor-widget elementor-widget-text-editor" data-id="f88b86f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Systém na pozadí vytvoří časový plán. V tomto kroku stačí potvrdit napárování Rubnooku na právě vytvořený časový plán, kliknutím na tlačítko <strong>OK</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-9cf0c8c elementor-widget elementor-widget-image" data-id="9cf0c8c" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts33" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTE5LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czMzLnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="372" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33-768x372.png" class="attachment-medium_large size-medium_large wp-image-519" alt="Schedule PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33-768x372.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33-300x145.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33-1024x496.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33-1536x744.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts33.png 1915w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-305ea2c elementor-widget elementor-widget-text-editor" data-id="305ea2c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Vytvořený časový plán se zobrazí v seznamu <strong>Schedules</strong> v detailu Runbooku.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-7525a4d elementor-widget elementor-widget-image" data-id="7525a4d" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts34" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTE4LCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czM0LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="199" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34-768x199.png" class="attachment-medium_large size-medium_large wp-image-518" alt="Schedule PowerShell Runbook" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34-768x199.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34-300x78.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34-1024x266.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34-1536x398.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts34.png 1700w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-263d9f9 elementor-widget elementor-widget-text-editor" data-id="263d9f9" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud si chcete prohlédnout historii spuštění rubnooku, přejděte v levém menu do sekce <strong>Jobs</strong>. Zobrazí se seznam všech spuštění, jejich stav a poslední aktivita. Po rozkliknutí konkrétního jobu jsou také k dispozici servisní informace, výstupy sktiptu a logy.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-b616978 elementor-widget elementor-widget-image" data-id="b616978" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="azure-automation-accounts35" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTMwLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNFwvYXp1cmUtYXV0b21hdGlvbi1hY2NvdW50czM1LnBuZyJ9">
							<img loading="lazy" decoding="async" width="768" height="195" src="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35-768x195.png" class="attachment-medium_large size-medium_large wp-image-530" alt="PowerShell Runbook - Jobs" srcset="https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35-768x195.png 768w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35-300x76.png 300w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35-1024x260.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35-1536x391.png 1536w, https://www.sraga.cz/wp-content/uploads/2024/04/azure-automation-accounts35.png 1884w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-1fa4ae8 elementor-widget elementor-widget-heading" data-id="1fa4ae8" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Videonávod</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-cbd8cc4 elementor-widget elementor-widget-video" data-id="cbd8cc4" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/www.youtube.com\/watch?v=uxZMmLxU3og&amp;t=634s&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://www.sraga.cz/automatizace-skriptu-pnp-powershell-azure-automation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
