App Args
data class AppArgs(val appName: Output<String>? = null, val identity: Output<ManagedIdentityPropertiesArgs>? = null, val location: Output<String>? = null, val properties: Output<AppResourcePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<AppArgs>
App resource payload API Version: 2020-07-01.
Example Usage
Apps_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var app = new AzureNative.AppPlatform.App("app", new()
{
AppName = "myapp",
Location = "eastus",
Properties = new AzureNative.AppPlatform.Inputs.AppResourcePropertiesArgs
{
ActiveDeploymentName = "mydeployment1",
Fqdn = "myapp.mydomain.com",
HttpsOnly = false,
PersistentDisk = new AzureNative.AppPlatform.Inputs.PersistentDiskArgs
{
MountPath = "/mypersistentdisk",
SizeInGB = 2,
},
Public = true,
TemporaryDisk = new AzureNative.AppPlatform.Inputs.TemporaryDiskArgs
{
MountPath = "/mytemporarydisk",
SizeInGB = 2,
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
Content copied to clipboard
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewApp(ctx, "app", &appplatform.AppArgs{
AppName: pulumi.String("myapp"),
Location: pulumi.String("eastus"),
Properties: appplatform.AppResourcePropertiesResponse{
ActiveDeploymentName: pulumi.String("mydeployment1"),
Fqdn: pulumi.String("myapp.mydomain.com"),
HttpsOnly: pulumi.Bool(false),
PersistentDisk: &appplatform.PersistentDiskArgs{
MountPath: pulumi.String("/mypersistentdisk"),
SizeInGB: pulumi.Int(2),
},
Public: pulumi.Bool(true),
TemporaryDisk: &appplatform.TemporaryDiskArgs{
MountPath: pulumi.String("/mytemporarydisk"),
SizeInGB: pulumi.Int(2),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.App;
import com.pulumi.azurenative.appplatform.AppArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var app = new App("app", AppArgs.builder()
.appName("myapp")
.location("eastus")
.properties(Map.ofEntries(
Map.entry("activeDeploymentName", "mydeployment1"),
Map.entry("fqdn", "myapp.mydomain.com"),
Map.entry("httpsOnly", false),
Map.entry("persistentDisk", Map.ofEntries(
Map.entry("mountPath", "/mypersistentdisk"),
Map.entry("sizeInGB", 2)
)),
Map.entry("public", true),
Map.entry("temporaryDisk", Map.ofEntries(
Map.entry("mountPath", "/mytemporarydisk"),
Map.entry("sizeInGB", 2)
))
))
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:appplatform:App myapp /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(appName: Output<String>? = null, identity: Output<ManagedIdentityPropertiesArgs>? = null, location: Output<String>? = null, properties: Output<AppResourcePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null)
Properties
Link copied to clipboard
The Managed Identity type of the app resource
Link copied to clipboard
Properties of the App resource
Link copied to clipboard
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
Link copied to clipboard
The name of the Service resource.