Class AbstractAppServiceMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    public abstract class AbstractAppServiceMojo
    extends AbstractAzureMojo
    Base abstract class for all Azure App Service Mojos.
    • Field Detail

      • resourceGroup

        @Parameter(property="resourceGroup",
                   required=false)
        protected String resourceGroup
        Name of the resource group. It will be created if it doesn't exist.
      • appName

        @Parameter(property="appName",
                   required=false)
        protected String appName
        Name of the app service. It will be created if it doesn't exist.
      • appServicePlanResourceGroup

        @Parameter(property="appServicePlanResourceGroup")
        protected String appServicePlanResourceGroup
        Resource group of app service plan. It will be created if it doesn't exist.
      • appServicePlanName

        @Parameter(property="appServicePlanName")
        protected String appServicePlanName
        Name of the app service plan. It will be created if it doesn't exist.
      • deploymentSlotSetting

        @Parameter(alias="deploymentSlot")
        protected com.microsoft.azure.toolkit.lib.legacy.appservice.DeploymentSlotSetting deploymentSlotSetting
        Configuration for deployment Slot, will create new slot if target does not exist.

        Require the web app exists already.

        Parameters for deployment slot

        • name: Specifies the name for deployment slot.
        • configurationSource: Specifies the configuration source of new created deployment slot, could be parent or existing deployment slot name, default value is parent
         
         <deploymentSlotSetting>
             <name>Slot-Name</name>
             <configurationSource>Source</value>
         </deploymentSlotSetting>
         
         
      • appSettings

        @Parameter
        protected Properties appSettings
        Application settings of App Service, in the form of name-value pairs.
         
         <appSettings>
                 <property>
                         <name>setting-name</name>
                         <value>setting-value</value>
                 </property>
         </appSettings>
         
         
      • appServiceClient

        protected com.microsoft.azure.toolkit.lib.appservice.AzureAppService appServiceClient
    • Constructor Detail

      • AbstractAppServiceMojo

        public AbstractAppServiceMojo()
    • Method Detail

      • getResourceGroup

        public String getResourceGroup()
      • getAppName

        public String getAppName()
      • getAppServicePlanResourceGroup

        public String getAppServicePlanResourceGroup()
      • getAppServicePlanName

        public String getAppServicePlanName()
      • getAppSettings

        public Map getAppSettings()
      • getDeploymentSlotSetting

        public com.microsoft.azure.toolkit.lib.legacy.appservice.DeploymentSlotSetting getDeploymentSlotSetting()
      • getDeploymentStagingDirectoryPath

        public String getDeploymentStagingDirectoryPath()
      • setDeploymentSlot

        public void setDeploymentSlot​(com.microsoft.azure.toolkit.lib.legacy.appservice.DeploymentSlotSetting slotSetting)
      • getResourcePortalUrl

        public String getResourcePortalUrl​(String id)
      • getPortalUrl

        protected static String getPortalUrl​(com.azure.core.management.AzureEnvironment azureEnvironment)
      • getOrCreateAzureAppServiceClient

        protected com.microsoft.azure.toolkit.lib.appservice.AzureAppService getOrCreateAzureAppServiceClient()
      • printCurrentSubscription

        protected void printCurrentSubscription​(com.microsoft.azure.toolkit.lib.appservice.AzureAppService appServiceClient)