Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.0 published on Wednesday, May 4, 2022 by Pulumi

App

App resource payload API Version: 2020-07-01.

Example Usage

Apps_CreateOrUpdate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var app = new AzureNative.AppPlatform.App("app", new AzureNative.AppPlatform.AppArgs
        {
            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",
        });
    }

}
package main

import (
	appplatform "github.com/pulumi/pulumi-azure-native/sdk/go/azure/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.AppResourcePropertiesArgs{
				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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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());

        }
}
import pulumi
import pulumi_azure_native as azure_native

app = azure_native.appplatform.App("app",
    app_name="myapp",
    location="eastus",
    properties=azure_native.appplatform.AppResourcePropertiesArgs(
        active_deployment_name="mydeployment1",
        fqdn="myapp.mydomain.com",
        https_only=False,
        persistent_disk=azure_native.appplatform.PersistentDiskArgs(
            mount_path="/mypersistentdisk",
            size_in_gb=2,
        ),
        public=True,
        temporary_disk=azure_native.appplatform.TemporaryDiskArgs(
            mount_path="/mytemporarydisk",
            size_in_gb=2,
        ),
    ),
    resource_group_name="myResourceGroup",
    service_name="myservice")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const app = new azure_native.appplatform.App("app", {
    appName: "myapp",
    location: "eastus",
    properties: {
        activeDeploymentName: "mydeployment1",
        fqdn: "myapp.mydomain.com",
        httpsOnly: false,
        persistentDisk: {
            mountPath: "/mypersistentdisk",
            sizeInGB: 2,
        },
        "public": true,
        temporaryDisk: {
            mountPath: "/mytemporarydisk",
            sizeInGB: 2,
        },
    },
    resourceGroupName: "myResourceGroup",
    serviceName: "myservice",
});
resources:
  app:
    type: azure-native:appplatform:App
    properties:
      appName: myapp
      location: eastus
      properties:
        activeDeploymentName: mydeployment1
        fqdn: myapp.mydomain.com
        httpsOnly: false
        persistentDisk:
          mountPath: /mypersistentdisk
          sizeInGB: 2
        public: true
        temporaryDisk:
          mountPath: /mytemporarydisk
          sizeInGB: 2
      resourceGroupName: myResourceGroup
      serviceName: myservice

Create a App Resource

new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        app_name: Optional[str] = None,
        identity: Optional[ManagedIdentityPropertiesArgs] = None,
        location: Optional[str] = None,
        properties: Optional[AppResourcePropertiesArgs] = None,
        resource_group_name: Optional[str] = None,
        service_name: Optional[str] = None)
@overload
def App(resource_name: str,
        args: AppArgs,
        opts: Optional[ResourceOptions] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
public App(String name, AppArgs args)
public App(String name, AppArgs args, CustomResourceOptions options)
type: azure-native:appplatform:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AppArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

App Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The App resource accepts the following input properties:

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServiceName string

The name of the Service resource.

AppName string

The name of the App resource.

Identity Pulumi.AzureNative.AppPlatform.Inputs.ManagedIdentityPropertiesArgs

The Managed Identity type of the app resource

Location string

The GEO location of the application, always the same with its parent resource

Properties Pulumi.AzureNative.AppPlatform.Inputs.AppResourcePropertiesArgs

Properties of the App resource

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServiceName string

The name of the Service resource.

AppName string

The name of the App resource.

Identity ManagedIdentityPropertiesArgs

The Managed Identity type of the app resource

Location string

The GEO location of the application, always the same with its parent resource

Properties AppResourcePropertiesArgs

Properties of the App resource

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serviceName String

The name of the Service resource.

appName String

The name of the App resource.

identity ManagedIdentityPropertiesArgs

The Managed Identity type of the app resource

location String

The GEO location of the application, always the same with its parent resource

properties AppResourcePropertiesArgs

Properties of the App resource

resourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serviceName string

The name of the Service resource.

appName string

The name of the App resource.

identity ManagedIdentityPropertiesArgs

The Managed Identity type of the app resource

location string

The GEO location of the application, always the same with its parent resource

properties AppResourcePropertiesArgs

Properties of the App resource

resource_group_name str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

service_name str

The name of the Service resource.

app_name str

The name of the App resource.

identity ManagedIdentityPropertiesArgs

The Managed Identity type of the app resource

location str

The GEO location of the application, always the same with its parent resource

properties AppResourcePropertiesArgs

Properties of the App resource

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serviceName String

The name of the Service resource.

appName String

The name of the App resource.

identity Property Map

The Managed Identity type of the app resource

location String

The GEO location of the application, always the same with its parent resource

properties Property Map

Properties of the App resource

Outputs

All input properties are implicitly available as output properties. Additionally, the App resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource.

Type string

The type of the resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource.

Type string

The type of the resource.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource.

type String

The type of the resource.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource.

type string

The type of the resource.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource.

type str

The type of the resource.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource.

type String

The type of the resource.

Supporting Types

AppResourceProperties

ActiveDeploymentName string

Name of the active deployment of the App

Fqdn string

Fully qualified dns Name.

HttpsOnly bool

Indicate if only https is allowed.

PersistentDisk Pulumi.AzureNative.AppPlatform.Inputs.PersistentDisk

Persistent disk settings

Public bool

Indicates whether the App exposes public endpoint

TemporaryDisk Pulumi.AzureNative.AppPlatform.Inputs.TemporaryDisk

Temporary disk settings

ActiveDeploymentName string

Name of the active deployment of the App

Fqdn string

Fully qualified dns Name.

HttpsOnly bool

Indicate if only https is allowed.

PersistentDisk PersistentDisk

Persistent disk settings

Public bool

Indicates whether the App exposes public endpoint

TemporaryDisk TemporaryDisk

Temporary disk settings

activeDeploymentName String

Name of the active deployment of the App

fqdn String

Fully qualified dns Name.

httpsOnly Boolean

Indicate if only https is allowed.

persistentDisk PersistentDisk

Persistent disk settings

public_ Boolean

Indicates whether the App exposes public endpoint

temporaryDisk TemporaryDisk

Temporary disk settings

activeDeploymentName string

Name of the active deployment of the App

fqdn string

Fully qualified dns Name.

httpsOnly boolean

Indicate if only https is allowed.

persistentDisk PersistentDisk

Persistent disk settings

public boolean

Indicates whether the App exposes public endpoint

temporaryDisk TemporaryDisk

Temporary disk settings

active_deployment_name str

Name of the active deployment of the App

fqdn str

Fully qualified dns Name.

https_only bool

Indicate if only https is allowed.

persistent_disk PersistentDisk

Persistent disk settings

public bool

Indicates whether the App exposes public endpoint

temporary_disk TemporaryDisk

Temporary disk settings

activeDeploymentName String

Name of the active deployment of the App

fqdn String

Fully qualified dns Name.

httpsOnly Boolean

Indicate if only https is allowed.

persistentDisk Property Map

Persistent disk settings

public Boolean

Indicates whether the App exposes public endpoint

temporaryDisk Property Map

Temporary disk settings

AppResourcePropertiesResponse

CreatedTime string

Date time when the resource is created

ProvisioningState string

Provisioning state of the App

Url string

URL of the App

ActiveDeploymentName string

Name of the active deployment of the App

Fqdn string

Fully qualified dns Name.

HttpsOnly bool

Indicate if only https is allowed.

PersistentDisk Pulumi.AzureNative.AppPlatform.Inputs.PersistentDiskResponse

Persistent disk settings

Public bool

Indicates whether the App exposes public endpoint

TemporaryDisk Pulumi.AzureNative.AppPlatform.Inputs.TemporaryDiskResponse

Temporary disk settings

CreatedTime string

Date time when the resource is created

ProvisioningState string

Provisioning state of the App

Url string

URL of the App

ActiveDeploymentName string

Name of the active deployment of the App

Fqdn string

Fully qualified dns Name.

HttpsOnly bool

Indicate if only https is allowed.

PersistentDisk PersistentDiskResponse

Persistent disk settings

Public bool

Indicates whether the App exposes public endpoint

TemporaryDisk TemporaryDiskResponse

Temporary disk settings

createdTime String

Date time when the resource is created

provisioningState String

Provisioning state of the App

url String

URL of the App

activeDeploymentName String

Name of the active deployment of the App

fqdn String

Fully qualified dns Name.

httpsOnly Boolean

Indicate if only https is allowed.

persistentDisk PersistentDiskResponse

Persistent disk settings

public_ Boolean

Indicates whether the App exposes public endpoint

temporaryDisk TemporaryDiskResponse

Temporary disk settings

createdTime string

Date time when the resource is created

provisioningState string

Provisioning state of the App

url string

URL of the App

activeDeploymentName string

Name of the active deployment of the App

fqdn string

Fully qualified dns Name.

httpsOnly boolean

Indicate if only https is allowed.

persistentDisk PersistentDiskResponse

Persistent disk settings

public boolean

Indicates whether the App exposes public endpoint

temporaryDisk TemporaryDiskResponse

Temporary disk settings

created_time str

Date time when the resource is created

provisioning_state str

Provisioning state of the App

url str

URL of the App

active_deployment_name str

Name of the active deployment of the App

fqdn str

Fully qualified dns Name.

https_only bool

Indicate if only https is allowed.

persistent_disk PersistentDiskResponse

Persistent disk settings

public bool

Indicates whether the App exposes public endpoint

temporary_disk TemporaryDiskResponse

Temporary disk settings

createdTime String

Date time when the resource is created

provisioningState String

Provisioning state of the App

url String

URL of the App

activeDeploymentName String

Name of the active deployment of the App

fqdn String

Fully qualified dns Name.

httpsOnly Boolean

Indicate if only https is allowed.

persistentDisk Property Map

Persistent disk settings

public Boolean

Indicates whether the App exposes public endpoint

temporaryDisk Property Map

Temporary disk settings

ManagedIdentityProperties

PrincipalId string

Principal Id

TenantId string

Tenant Id

Type string | Pulumi.AzureNative.AppPlatform.ManagedIdentityType

Type of the managed identity

PrincipalId string

Principal Id

TenantId string

Tenant Id

Type string | ManagedIdentityType

Type of the managed identity

principalId String

Principal Id

tenantId String

Tenant Id

type String | ManagedIdentityType

Type of the managed identity

principalId string

Principal Id

tenantId string

Tenant Id

type string | ManagedIdentityType

Type of the managed identity

principal_id str

Principal Id

tenant_id str

Tenant Id

type str | ManagedIdentityType

Type of the managed identity

principalId String

Principal Id

tenantId String

Tenant Id

type String | "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned,UserAssigned"

Type of the managed identity

ManagedIdentityPropertiesResponse

PrincipalId string

Principal Id

TenantId string

Tenant Id

Type string

Type of the managed identity

PrincipalId string

Principal Id

TenantId string

Tenant Id

Type string

Type of the managed identity

principalId String

Principal Id

tenantId String

Tenant Id

type String

Type of the managed identity

principalId string

Principal Id

tenantId string

Tenant Id

type string

Type of the managed identity

principal_id str

Principal Id

tenant_id str

Tenant Id

type str

Type of the managed identity

principalId String

Principal Id

tenantId String

Tenant Id

type String

Type of the managed identity

ManagedIdentityType

None
None
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned_UserAssigned
SystemAssigned,UserAssigned
ManagedIdentityTypeNone
None
ManagedIdentityTypeSystemAssigned
SystemAssigned
ManagedIdentityTypeUserAssigned
UserAssigned
ManagedIdentityType_SystemAssigned_UserAssigned
SystemAssigned,UserAssigned
None
None
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned_UserAssigned
SystemAssigned,UserAssigned
None
None
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned_UserAssigned
SystemAssigned,UserAssigned
NONE
None
SYSTEM_ASSIGNED
SystemAssigned
USER_ASSIGNED
UserAssigned
SYSTEM_ASSIGNED_USER_ASSIGNED
SystemAssigned,UserAssigned
"None"
None
"SystemAssigned"
SystemAssigned
"UserAssigned"
UserAssigned
"SystemAssigned,UserAssigned"
SystemAssigned,UserAssigned

PersistentDisk

MountPath string

Mount path of the persistent disk

SizeInGB int

Size of the persistent disk in GB

MountPath string

Mount path of the persistent disk

SizeInGB int

Size of the persistent disk in GB

mountPath String

Mount path of the persistent disk

sizeInGB Integer

Size of the persistent disk in GB

mountPath string

Mount path of the persistent disk

sizeInGB number

Size of the persistent disk in GB

mount_path str

Mount path of the persistent disk

size_in_gb int

Size of the persistent disk in GB

mountPath String

Mount path of the persistent disk

sizeInGB Number

Size of the persistent disk in GB

PersistentDiskResponse

UsedInGB int

Size of the used persistent disk in GB

MountPath string

Mount path of the persistent disk

SizeInGB int

Size of the persistent disk in GB

UsedInGB int

Size of the used persistent disk in GB

MountPath string

Mount path of the persistent disk

SizeInGB int

Size of the persistent disk in GB

usedInGB Integer

Size of the used persistent disk in GB

mountPath String

Mount path of the persistent disk

sizeInGB Integer

Size of the persistent disk in GB

usedInGB number

Size of the used persistent disk in GB

mountPath string

Mount path of the persistent disk

sizeInGB number

Size of the persistent disk in GB

used_in_gb int

Size of the used persistent disk in GB

mount_path str

Mount path of the persistent disk

size_in_gb int

Size of the persistent disk in GB

usedInGB Number

Size of the used persistent disk in GB

mountPath String

Mount path of the persistent disk

sizeInGB Number

Size of the persistent disk in GB

TemporaryDisk

MountPath string

Mount path of the temporary disk

SizeInGB int

Size of the temporary disk in GB

MountPath string

Mount path of the temporary disk

SizeInGB int

Size of the temporary disk in GB

mountPath String

Mount path of the temporary disk

sizeInGB Integer

Size of the temporary disk in GB

mountPath string

Mount path of the temporary disk

sizeInGB number

Size of the temporary disk in GB

mount_path str

Mount path of the temporary disk

size_in_gb int

Size of the temporary disk in GB

mountPath String

Mount path of the temporary disk

sizeInGB Number

Size of the temporary disk in GB

TemporaryDiskResponse

MountPath string

Mount path of the temporary disk

SizeInGB int

Size of the temporary disk in GB

MountPath string

Mount path of the temporary disk

SizeInGB int

Size of the temporary disk in GB

mountPath String

Mount path of the temporary disk

sizeInGB Integer

Size of the temporary disk in GB

mountPath string

Mount path of the temporary disk

sizeInGB number

Size of the temporary disk in GB

mount_path str

Mount path of the temporary disk

size_in_gb int

Size of the temporary disk in GB

mountPath String

Mount path of the temporary disk

sizeInGB Number

Size of the temporary disk in GB

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0