<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>scaling an Azure SQL database using Azure Automation</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/jerryjacob1/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/jerryjacob1/feed.xml</link>
    <description>Azure Automation</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:10:45 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Scaling an Azure SQL database using Azure Automation</title>
      <link>https://docs.microsoft.com/archive/blogs/jerryjacob1/scaling-an-azure-sql-database-using-azure-automation</link>
      <pubDate>Wed, 28 Dec 2016 08:36:38 GMT</pubDate>
      <dc:creator><![CDATA[jacob jerry]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jerryjacob1/?p=135</guid>
      <description><![CDATA[With Azure SQL Database, you can easily change service tiers and performance levels...]]></description>
      <content:encoded><![CDATA[<p><span style="color:#333333;font-family:Ebrima;font-size:10pt">With Azure SQL Database, you can easily change <a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-scale-up">service tiers and performance levels dynamically</a> without downtime.  Basic, Standard, and Premium are the 3 service tiers with multiple performance levels to handle different workloads. 
</span></p><p><span style="color:#333333;font-family:Ebrima;font-size:10pt">Higher performance levels provide increasing resources designed to deliver increasingly higher throughput. 
</span></p><p><span style="color:#333333;font-family:Ebrima;font-size:10pt"> Azure SQL database follows the hourly billing model for the resources assigned to a database. <br />So, if your business requires you to use a Premium service tier for high transactional workload for few business hours during the day only, it would not make sense to be paying for a premium tier for the nonbusiness hours when there are no users using the database.
</span></p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:10pt">To take advantage of the "Pay as go/use" you must upscale your database during Business hours and down scale database during off hours to optimize costs. However, this can become monotonous and tiresome.  
</span></p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:10pt">Don't Worry!! We have a solution for this. This can be achieved by Azure automation. Azure Automation brings a powerful, much needed PowerShell Workflow execution service to the Azure platform.
</span></p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:10pt"> In this Blog, I will show you to how to achieve this by using Azure Automation.  I am providing a Customer scenario where Customer wants to have his database at S2(50 DTU's) from 7A.M to 7 P.M and rest of the hours in Basic Edition (5 DTU's). Customer like to perform this activity daily.
</span></p><p style="background: white">
 </p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:14pt;text-decoration:underline"><strong>Step 1: Create your Automation Account: 
</strong></span></p><p style="background: white"><span style="color:#333333;font-size:10pt"><span style="font-family:Ebrima">To do the Automation you should create an automation account. Add the details for the Automation account and proceed with the creation.</span><span style="font-family:Segoe UI">
			</span></span></p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz1.png" alt="" />
	</p><p>
 </p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz2.png" alt="" />
	</p><p>
 </p><p>
 </p><p>
 </p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:14pt;text-decoration:underline"><strong>Step 2: Create a Runbook under the Automation account you created
</strong></span></p><p>Click on Add a Runbook Icon and create the run book with <strong>PowerShell work flow</strong> as run book type.
</p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz3.png" alt="" />
	</p><p>
 </p><p>
 </p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz4.png" alt="" />
	</p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:14pt;text-decoration:underline"><strong>Step-3: Publish the Runbook
</strong></span></p><p>
 </p><p><span style="color:#333333;font-family:Ebrima;font-size:10pt;text-decoration:underline"><strong>Copy the script from the below mentioned link and publish it in the runbook
</strong></span></p><p><a href="https://gallery.technet.microsoft.com/scriptcenter/Azure-SQL-Database-e957354f"><span style="font-family:Ebrima;font-size:10pt">https://gallery.technet.microsoft.com/scriptcenter/Azure-SQL-Database-e957354f</span></a><span style="color:#333333;font-family:Ebrima;font-size:10pt;text-decoration:underline"><strong>
			</strong></span></p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz5.png" alt="" />
	</p><p>
 </p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:14pt;text-decoration:underline"><strong>Step-4: Creation of credential for the runbook
</strong></span></p><p>create a credential with the server admin user and password like the one I mentioned in the below screenshot.
</p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz6.png" alt="" />
	</p><p>
 </p><p style="background: white"><span style="color:#333333;font-family:Ebrima;font-size:14pt;text-decoration:underline"><strong>Step-5: Scheduling the run book
</strong></span></p><p>You can decide up on the time where you want to upscale and down scale your database. But you need to create separate run book for each of the options.
</p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz7.png" alt="" />
	</p><p>
 </p><p>
 </p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz8.png" alt="" />
	</p><p>
 </p><p><span style="color:#333333;font-family:Ebrima;font-size:14pt;text-decoration:underline"><strong>Step-6: Configure Parameter setting
</strong></span></p><p>Configure the parameter setting for the Runbook like the server name, database name, Edition, Perf Level and the credential
</p><p style="background: white">Edition: Basic, Standard, Premium<br />Perf Level: Basic, S0, S1, S2, P1, P2, P3
</p><p style="background: white">
 </p><p style="background: white">In my case I am downscaling my database from S1 to S0
</p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz9.png" alt="" />
	</p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz10.png" alt="" />
	</p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p>
 </p><p><img src="https://msdnshared.blob.core.windows.net/media/2016/12/122816_1406_ScalinganAz11.png" alt="" />
	</p><p>
 </p><p>It Successfully downgraded to S0. By this time, you would have figure out how easy is to auto scale your database by Azure Automation.
</p><p>Hope this help!! <span style="font-family:Wingdings">J</span>
	</p>]]></content:encoded>
    </item>
    <item>
      <title>Hello world!</title>
      <link>https://docs.microsoft.com/archive/blogs/jerryjacob1/hello-world</link>
      <pubDate>Sat, 24 Dec 2016 08:50:18 GMT</pubDate>
      <dc:creator><![CDATA[jacob jerry]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jerryjacob1/?p=1</guid>
      <description><![CDATA[Welcome to Developer Network. This is your first post. Edit or delete it, then start blogging!]]></description>
      <content:encoded><![CDATA[Welcome to <a href="https://blogs.msdn.microsoft.com/">Developer Network</a>. This is your first post. Edit or delete it, then start blogging!]]></content:encoded>
    </item>
  </channel>
</rss>