Get ARM template for a specific API in Azure API Management











up vote
0
down vote

favorite












In the Azure API portal there is the Automation script tab, but that generates the ARM template for the entire resource group. It also includes a lot of other stuff that needed.



Is there a (simple) way to get hold of the ARM template for a specific API rather than the entire resource group? Can it be done through Azure cli? the REST API?










share|improve this question


























    up vote
    0
    down vote

    favorite












    In the Azure API portal there is the Automation script tab, but that generates the ARM template for the entire resource group. It also includes a lot of other stuff that needed.



    Is there a (simple) way to get hold of the ARM template for a specific API rather than the entire resource group? Can it be done through Azure cli? the REST API?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      In the Azure API portal there is the Automation script tab, but that generates the ARM template for the entire resource group. It also includes a lot of other stuff that needed.



      Is there a (simple) way to get hold of the ARM template for a specific API rather than the entire resource group? Can it be done through Azure cli? the REST API?










      share|improve this question













      In the Azure API portal there is the Automation script tab, but that generates the ARM template for the entire resource group. It also includes a lot of other stuff that needed.



      Is there a (simple) way to get hold of the ARM template for a specific API rather than the entire resource group? Can it be done through Azure cli? the REST API?







      azure azure-api-management






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 13:03









      Souciance Eqdam Rashti

      2,2421620




      2,2421620
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          Yes, use the Azure Resource Explorer to locate your resource, the Uri at the top of the page will provide you a link to the template (requires authentication if you want to call it from outside of Resource Explorer).



          Azure Resource Explorer



          I also always refer back to the reference documentation on ARM templates, it is a very good place to start from. Whilst it doesn't give you your exact template, it does give you a very clear base to start from (example below). I find this far more productive that trying to read the templates in the Automation Script" section of the portal.



          Good luck.



          Azure documentation for a CosmosDB resource






          share|improve this answer























          • Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
            – Souciance Eqdam Rashti
            Nov 10 at 0:48


















          up vote
          1
          down vote













          No, you cannot do that. there is only 1 resource provider action to export and it exports the whole resource group. just remove all the extra parts.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226242%2fget-arm-template-for-a-specific-api-in-azure-api-management%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            Yes, use the Azure Resource Explorer to locate your resource, the Uri at the top of the page will provide you a link to the template (requires authentication if you want to call it from outside of Resource Explorer).



            Azure Resource Explorer



            I also always refer back to the reference documentation on ARM templates, it is a very good place to start from. Whilst it doesn't give you your exact template, it does give you a very clear base to start from (example below). I find this far more productive that trying to read the templates in the Automation Script" section of the portal.



            Good luck.



            Azure documentation for a CosmosDB resource






            share|improve this answer























            • Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
              – Souciance Eqdam Rashti
              Nov 10 at 0:48















            up vote
            2
            down vote













            Yes, use the Azure Resource Explorer to locate your resource, the Uri at the top of the page will provide you a link to the template (requires authentication if you want to call it from outside of Resource Explorer).



            Azure Resource Explorer



            I also always refer back to the reference documentation on ARM templates, it is a very good place to start from. Whilst it doesn't give you your exact template, it does give you a very clear base to start from (example below). I find this far more productive that trying to read the templates in the Automation Script" section of the portal.



            Good luck.



            Azure documentation for a CosmosDB resource






            share|improve this answer























            • Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
              – Souciance Eqdam Rashti
              Nov 10 at 0:48













            up vote
            2
            down vote










            up vote
            2
            down vote









            Yes, use the Azure Resource Explorer to locate your resource, the Uri at the top of the page will provide you a link to the template (requires authentication if you want to call it from outside of Resource Explorer).



            Azure Resource Explorer



            I also always refer back to the reference documentation on ARM templates, it is a very good place to start from. Whilst it doesn't give you your exact template, it does give you a very clear base to start from (example below). I find this far more productive that trying to read the templates in the Automation Script" section of the portal.



            Good luck.



            Azure documentation for a CosmosDB resource






            share|improve this answer














            Yes, use the Azure Resource Explorer to locate your resource, the Uri at the top of the page will provide you a link to the template (requires authentication if you want to call it from outside of Resource Explorer).



            Azure Resource Explorer



            I also always refer back to the reference documentation on ARM templates, it is a very good place to start from. Whilst it doesn't give you your exact template, it does give you a very clear base to start from (example below). I find this far more productive that trying to read the templates in the Automation Script" section of the portal.



            Good luck.



            Azure documentation for a CosmosDB resource







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 9 at 17:09

























            answered Nov 9 at 14:15









            Murray Foxcroft

            5,2663349




            5,2663349












            • Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
              – Souciance Eqdam Rashti
              Nov 10 at 0:48


















            • Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
              – Souciance Eqdam Rashti
              Nov 10 at 0:48
















            Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
            – Souciance Eqdam Rashti
            Nov 10 at 0:48




            Yeah that is much better way, the automation script approach is too slow as well. Especially in an IE browser.
            – Souciance Eqdam Rashti
            Nov 10 at 0:48












            up vote
            1
            down vote













            No, you cannot do that. there is only 1 resource provider action to export and it exports the whole resource group. just remove all the extra parts.






            share|improve this answer

























              up vote
              1
              down vote













              No, you cannot do that. there is only 1 resource provider action to export and it exports the whole resource group. just remove all the extra parts.






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                No, you cannot do that. there is only 1 resource provider action to export and it exports the whole resource group. just remove all the extra parts.






                share|improve this answer












                No, you cannot do that. there is only 1 resource provider action to export and it exports the whole resource group. just remove all the extra parts.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 9 at 13:13









                4c74356b41

                23.5k32050




                23.5k32050






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226242%2fget-arm-template-for-a-specific-api-in-azure-api-management%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    Xamarin.form Move up view when keyboard appear

                    Post-Redirect-Get with Spring WebFlux and Thymeleaf

                    Anylogic : not able to use stopDelay()