@Mojo(name="deploy",
defaultPhase=DEPLOY)
public class DeployMojo
extends AbstractFunctionMojo
AbstractAzureMojo.DefaultUncaughtExceptionHandler, AbstractAzureMojo.RunnableWithExceptionalwaysReadyInstances, appInsightsInstance, appInsightsKey, artifactPath, AZURE_FUNCTIONS_JAVA_LIBRARY, CAN_NOT_FIND_ARTIFACT, disableAppInsights, enableDistributedTracing, environment, finalName, FUNCTION_EXTENSION_LIBRARY_MAP, HOST_JSON, hostJson, instanceSize, LOCAL_SETTINGS_JSON, localSettingsJson, maximumInstances, maxReplicas, minReplicas, outputDirectory, parser, pricingTier, region, runtime, skip, storageAccountName, storageAccountResourceGroup, TRIGGER_TYPEappName, appServiceClient, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentSlotSetting, MAVEN_PLUGIN_POSTFIX, resourceGroupallowTelemetry, auth, authType, buildDirectory, COMPILE_LEVEL_NOT_SUPPORTED, FAILED_TO_GET_VALID_RUNTIMES, failsOnError, failsOnRuntimeValidationError, INSTALLATION_ID_KEY, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, settingsDecrypter, SUBSCRIPTION_ID_KEY, SUBSCRIPTION_NOT_FOUND, SUBSCRIPTION_TEMPLATE, subscriptionId, telemetries, telemetryProxy, USING_AZURE_ENVIRONMENT| Constructor and Description |
|---|
DeployMojo() |
| Modifier and Type | Method and Description |
|---|---|
private FunctionAppConfig |
buildDefaultConfig(String subscriptionId,
String resourceGroup,
String appName) |
protected FunctionAppBase<?,?,?> |
createOrUpdateResource(FunctionApp app) |
private void |
deployArtifact(FunctionAppBase<?,?,?> target) |
protected void |
doExecute() |
protected void |
doValidate() |
private void |
mergeCommandLineConfig() |
private void |
validateApplicationInsightsConfiguration() |
private void |
validateArtifactCompileVersion() |
protected void |
validateParameters()
Deprecated.
|
getAppInsightsInstance, getAppInsightsKey, getArtifact, getBundleVersion, getFinalName, getFunctionLibraryVersion, getHostJsonFile, getLocalSettingsJsonFile, getRegion, getRuntimeConfiguration, getTelemetryProperties, isDisableAppInsights, isSkipMojo, readHostJson, validateAppName, validateFunctionCompatibilitygetAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getResourceGroup, getResources, initAzureAppServiceClient, printCurrentSubscriptionafterMojoExecution, beforeMojoExecution, checkSubscription, execute, executeWithTimeRecorder, getActualAuthType, getAllowTelemetry, getBuildDirectoryAbsolutePath, getCompileLevel, getFailsOnError, getFailsOnRuntimeValidationError, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTargetSubscriptionId, getTelemetries, getTelemetryProxy, getUserAgent, getValidRuntimes, highlightDefaultValue, infoWithMultipleLines, initTelemetryProxy, loginAzure, loginAzure, onMojoError, onSkipped, printCredentialDescription, selectSubscription, selectSubscription, trackMojoFailure, updateTelemetryProperties, validateArtifactCompileVersionprivate static final String APPLICATION_INSIGHTS_CONFIGURATION_CONFLICT
private static final String ARTIFACT_INCOMPATIBLE_WARNING
private static final String ARTIFACT_INCOMPATIBLE_ERROR
private static final String NO_ARTIFACT_FOUNDED
private static final String APP_NAME_PATTERN
private static final String RESOURCE_GROUP_PATTERN
private static final String SLOT_NAME_PATTERN
private static final String APP_SERVICE_PLAN_NAME_PATTERN
private static final String EMPTY_APP_NAME
private static final String INVALID_APP_NAME
private static final String EMPTY_RESOURCE_GROUP
private static final String INVALID_RESOURCE_GROUP_NAME
private static final String INVALID_SERVICE_PLAN_NAME
private static final String INVALID_SERVICE_PLAN_RESOURCE_GROUP_NAME
private static final String EMPTY_SLOT_NAME
private static final String INVALID_SLOT_NAME
private static final String EMPTY_IMAGE_NAME
private static final String INVALID_OS
private static final String EXPANDABLE_PRICING_TIER_WARNING
private static final String EXPANDABLE_REGION_WARNING
private static final String EXPANDABLE_JAVA_VERSION_WARNING
private static final String CV2_INVALID_CONTAINER_SIZE
private static final String CV2_INVALID_RUNTIME
private static final String CV2_INVALID_MAX_INSTANCE
public static final int MAX_MAX_INSTANCES
public static final String CV2_INVALID_ALWAYS_READY_INSTANCE
public static final String CV2_INVALID_JAVA_VERSION
@Parameter(property="deploymentType") protected String deploymentType
For Windows Function Apps, the default deployment method is RUN_FROM_ZIP
For Linux Function Apps, RUN_FROM_BLOB will be used for apps with Consumption and Premium App Service Plan, RUN_FROM_ZIP will be used for apps with Dedicated App Service Plan.
protected void doExecute()
throws Throwable
doExecute in class AbstractAzureMojoThrowableprivate void mergeCommandLineConfig()
protected void doValidate()
throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionprivate void validateArtifactCompileVersion()
throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException@Deprecated protected void validateParameters()
protected FunctionAppBase<?,?,?> createOrUpdateResource(FunctionApp app) throws Throwable
Throwableprivate FunctionAppConfig buildDefaultConfig(String subscriptionId, String resourceGroup, String appName)
private void deployArtifact(FunctionAppBase<?,?,?> target)
private void validateApplicationInsightsConfiguration()
throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionCopyright © 2024. All rights reserved.