Scale out Azure SQL Database

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a SQL Database in Azure. An S0 instance with 10 DTUs. This is enough 95% of the time.



However, when the App Service plan scales out (can go up to 20x in rare cases), I need 200/400 DTUs. Since this will not happen very often, so it would be a waste to always pay for these sizes. Is there a way to scale out the database when the app service scales out?



Thank you!










share|improve this question

























    up vote
    1
    down vote

    favorite












    I have a SQL Database in Azure. An S0 instance with 10 DTUs. This is enough 95% of the time.



    However, when the App Service plan scales out (can go up to 20x in rare cases), I need 200/400 DTUs. Since this will not happen very often, so it would be a waste to always pay for these sizes. Is there a way to scale out the database when the app service scales out?



    Thank you!










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have a SQL Database in Azure. An S0 instance with 10 DTUs. This is enough 95% of the time.



      However, when the App Service plan scales out (can go up to 20x in rare cases), I need 200/400 DTUs. Since this will not happen very often, so it would be a waste to always pay for these sizes. Is there a way to scale out the database when the app service scales out?



      Thank you!










      share|improve this question













      I have a SQL Database in Azure. An S0 instance with 10 DTUs. This is enough 95% of the time.



      However, when the App Service plan scales out (can go up to 20x in rare cases), I need 200/400 DTUs. Since this will not happen very often, so it would be a waste to always pay for these sizes. Is there a way to scale out the database when the app service scales out?



      Thank you!







      azure database autoscaling






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 5 hours ago









      Joel'-'

      314




      314




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          There's no direct way to have a DB scale up when a Web App does, but there is a workaround. You can have the scale up action on the web app trigger a webhook, so you can have that call either Azure Automation or an Azure Function, which then talks to the ARM API to scale up or down your SQL DB.



          See here to see how to trigger a webhook on scaling.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f933223%2fscale-out-azure-sql-database%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            There's no direct way to have a DB scale up when a Web App does, but there is a workaround. You can have the scale up action on the web app trigger a webhook, so you can have that call either Azure Automation or an Azure Function, which then talks to the ARM API to scale up or down your SQL DB.



            See here to see how to trigger a webhook on scaling.






            share|improve this answer
























              up vote
              2
              down vote













              There's no direct way to have a DB scale up when a Web App does, but there is a workaround. You can have the scale up action on the web app trigger a webhook, so you can have that call either Azure Automation or an Azure Function, which then talks to the ARM API to scale up or down your SQL DB.



              See here to see how to trigger a webhook on scaling.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                There's no direct way to have a DB scale up when a Web App does, but there is a workaround. You can have the scale up action on the web app trigger a webhook, so you can have that call either Azure Automation or an Azure Function, which then talks to the ARM API to scale up or down your SQL DB.



                See here to see how to trigger a webhook on scaling.






                share|improve this answer












                There's no direct way to have a DB scale up when a Web App does, but there is a workaround. You can have the scale up action on the web app trigger a webhook, so you can have that call either Azure Automation or an Azure Function, which then talks to the ARM API to scale up or down your SQL DB.



                See here to see how to trigger a webhook on scaling.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 57 mins ago









                Sam Cogan

                31.1k567106




                31.1k567106



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f933223%2fscale-out-azure-sql-database%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery