Class AzureFunctionsDeployCommand

java.lang.Object
io.quarkus.azure.functions.deployment.AzureFunctionsDeployCommand

public class AzureFunctionsDeployCommand extends Object
  • Field Details

    • USING_AZURE_ENVIRONMENT

      protected static final String USING_AZURE_ENVIRONMENT
      See Also:
    • AZURE_FUNCTIONS

      public static final String AZURE_FUNCTIONS
      See Also:
    • SUBSCRIPTION_TEMPLATE

      protected static final String SUBSCRIPTION_TEMPLATE
      See Also:
    • SUBSCRIPTION_NOT_FOUND

      protected static final String SUBSCRIPTION_NOT_FOUND
      See Also:
    • appServiceClient

      protected static com.microsoft.azure.toolkit.lib.appservice.AzureAppService appServiceClient
    • subscriptionId

      protected static String subscriptionId
  • Constructor Details

    • AzureFunctionsDeployCommand

      public AzureFunctionsDeployCommand()
  • Method Details

    • declare

      public void declare(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.cmd.DeployCommandDeclarationBuildItem> producer)
    • deploy

      public void deploy(io.quarkus.deployment.cmd.DeployConfig deployConfig, AzureFunctionsConfig config, AzureFunctionsAppNameBuildItem appName, io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem output, io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.cmd.DeployCommandActionBuildItem> producer) throws Exception
      Throws:
      Exception
    • validateParameters

      protected void validateParameters(AzureFunctionsConfig config, String appName) throws io.quarkus.builder.BuildException
      Throws:
      io.quarkus.builder.BuildException
    • initAzureAppServiceClient

      protected com.microsoft.azure.toolkit.lib.appservice.AzureAppService initAzureAppServiceClient(AzureFunctionsConfig config) throws io.quarkus.builder.BuildException
      Throws:
      io.quarkus.builder.BuildException
    • checkSubscription

      protected static void checkSubscription(List<com.microsoft.azure.toolkit.lib.common.model.Subscription> subscriptions, String targetSubscriptionId) throws io.quarkus.builder.BuildException
      Throws:
      io.quarkus.builder.BuildException
    • loginAzure

      protected com.microsoft.azure.toolkit.lib.auth.Account loginAzure(AzureFunctionsConfig.AuthConfig auth)
    • printCredentialDescription

      protected static void printCredentialDescription(com.microsoft.azure.toolkit.lib.auth.Account account)
    • getTargetSubscriptionId

      protected String getTargetSubscriptionId(String defaultSubscriptionId, List<com.microsoft.azure.toolkit.lib.common.model.Subscription> subscriptions, List<com.microsoft.azure.toolkit.lib.common.model.Subscription> selectedSubscriptions) throws io.quarkus.builder.BuildException
      Throws:
      io.quarkus.builder.BuildException
    • printCurrentSubscription

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

      protected com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppBase<?,?,?> createOrUpdateResource(com.microsoft.azure.toolkit.lib.appservice.config.FunctionAppConfig config) throws Exception
      Throws:
      Exception