The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Azure App Service - Web Apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

 none
Setting Azure Website SSL and Traffic Manager through Powershell RRS feed

  • Question

  • Hi,

    I am looking for information on how to set the website general settings through powershell cmdlets. When I create a new Website through gallery and choose Apache Tomcat 7 it default selects the .net framework. I would like to set those off and use Java version . 

    Don't see any commands to set that default while creating a website. 

    Also, how can I set an already available SSL certificate and Traffic manager end point to my new website using powershell cmdlets.

    Thanks in Advance.

    Trupt

    Sunday, January 25, 2015 9:53 PM

Answers

  • Hi Trupt,

    Thanks for your posting!

    Parameter Set: Default
    Set-AzureWebsite [[-Name] <String> ] [[-SiteWithConfig] <SiteWithConfig> ] [-AppSettings <Hashtable> ] [-AutoSwapSlotName <String> ] [-ConnectionStrings <ConnStringPropertyBag> ] [-DefaultDocuments <String[]> ] [-DetailedErrorLoggingEnabled <Boolean> ] [-HandlerMappings <HandlerMapping[]> ] [-HostNames <String[]> ] [-HttpLoggingEnabled <Boolean> ] [-ManagedPipelineMode <ManagedPipelineMode> ] [-Metadata <List<NameValuePair>> ] [-NetFrameworkVersion <String> ] [-NumberOfWorkers <Int32> ] [-PassThru] [-PhpVersion <String> ] [-RequestTracingEnabled <Boolean> ] [-RoutingRules <List<RoutingRule>> ] [-Slot <String> ] [-SlotStickyAppSettingNames <List<String>> ] [-SlotStickyConnectionStringNames <List<String>> ] [-Use32BitWorkerProcess <Boolean> ] [-WebSocketsEnabled <Boolean> ] [ <CommonParameters>]
    

    Base on my experience, You can use set-Azurewebsite to set the website setting. But we cannot enable the Java via powershell. Also, we cannot set SSL and TM using powershell. But you can enable Java on Azure portal configuration panel.

    Also, you can try to use Azure REST API to change the website configuration:

    You could refer to this blog about call REST API on Powershell .

    http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/17/using-the-windows-azure-rest-apis-with-powershell.aspx

    Regards,

    Will

     


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, January 26, 2015 7:21 AM
    Moderator