Search in sources :

Example 6 with FunctionApp

use of com.microsoft.azure.management.appservice.FunctionApp in project azure-gradle-plugins by lenala.

the class MSDeployArtifactHandlerImpl method publish.

@Override
public void publish() throws Exception {
    final File zipPackage = createZipPackage();
    final FunctionApp app = functionsTask.getFunctionApp();
    functionsTask.getLogger().quiet("FunctionApp " + app);
    final CloudStorageAccount storageAccount = getCloudStorageAccount(app);
    final String blobName = getBlobName();
    final String packageUri = uploadPackageToAzureStorage(zipPackage, storageAccount, blobName);
    deployWithPackageUri(app, packageUri, () -> deletePackageFromAzureStorage(storageAccount, blobName));
}
Also used : CloudStorageAccount(com.microsoft.azure.storage.CloudStorageAccount) File(java.io.File) FunctionApp(com.microsoft.azure.management.appservice.FunctionApp)

Aggregations

FunctionApp (com.microsoft.azure.management.appservice.FunctionApp)6 File (java.io.File)4 AppServicePlan (com.microsoft.azure.management.appservice.AppServicePlan)3 PublishingProfile (com.microsoft.azure.management.appservice.PublishingProfile)3 IOException (java.io.IOException)2 Git (org.eclipse.jgit.api.Git)2 PushCommand (org.eclipse.jgit.api.PushCommand)2 RefSpec (org.eclipse.jgit.transport.RefSpec)2 UsernamePasswordCredentialsProvider (org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider)2 FTPUploader (com.microsoft.azure.gradle.functions.helpers.FTPUploader)1 AppServiceDomain (com.microsoft.azure.management.appservice.AppServiceDomain)1 CloudStorageAccount (com.microsoft.azure.storage.CloudStorageAccount)1 HashMap (java.util.HashMap)1 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1