azure-native.appplatform.App
Explore with Pulumi AI
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",
});
});
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
})
}
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());
}
}
import pulumi
import pulumi_azure_native as azure_native
app = azure_native.appplatform.App("app",
app_name="myapp",
location="eastus",
properties=azure_native.appplatform.AppResourcePropertiesResponseArgs(
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 App Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
args: AppArgs,
opts: Optional[ResourceOptions] = None)
@overload
def App(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
app_name: Optional[str] = None,
identity: Optional[ManagedIdentityPropertiesArgs] = None,
location: Optional[str] = None,
properties: Optional[AppResourcePropertiesArgs] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
type: azure-native:appplatform:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var appResource = new AzureNative.Appplatform.App("appResource", new()
{
ResourceGroupName = "string",
ServiceName = "string",
AppName = "string",
Identity =
{
{ "principalId", "string" },
{ "tenantId", "string" },
{ "type", "string" },
},
Location = "string",
Properties =
{
{ "activeDeploymentName", "string" },
{ "fqdn", "string" },
{ "httpsOnly", false },
{ "persistentDisk",
{
{ "mountPath", "string" },
{ "sizeInGB", 0 },
} },
{ "public", false },
{ "temporaryDisk",
{
{ "mountPath", "string" },
{ "sizeInGB", 0 },
} },
},
});
example, err := appplatform.NewApp(ctx, "appResource", &appplatform.AppArgs{
ResourceGroupName: "string",
ServiceName: "string",
AppName: "string",
Identity: map[string]interface{}{
"principalId": "string",
"tenantId": "string",
"type": "string",
},
Location: "string",
Properties: map[string]interface{}{
"activeDeploymentName": "string",
"fqdn": "string",
"httpsOnly": false,
"persistentDisk": map[string]interface{}{
"mountPath": "string",
"sizeInGB": 0,
},
"public": false,
"temporaryDisk": map[string]interface{}{
"mountPath": "string",
"sizeInGB": 0,
},
},
})
var appResource = new App("appResource", AppArgs.builder()
.resourceGroupName("string")
.serviceName("string")
.appName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
app_resource = azure_native.appplatform.App("appResource",
resource_group_name=string,
service_name=string,
app_name=string,
identity={
principalId: string,
tenantId: string,
type: string,
},
location=string,
properties={
activeDeploymentName: string,
fqdn: string,
httpsOnly: False,
persistentDisk: {
mountPath: string,
sizeInGB: 0,
},
public: False,
temporaryDisk: {
mountPath: string,
sizeInGB: 0,
},
})
const appResource = new azure_native.appplatform.App("appResource", {
resourceGroupName: "string",
serviceName: "string",
appName: "string",
identity: {
principalId: "string",
tenantId: "string",
type: "string",
},
location: "string",
properties: {
activeDeploymentName: "string",
fqdn: "string",
httpsOnly: false,
persistentDisk: {
mountPath: "string",
sizeInGB: 0,
},
"public": false,
temporaryDisk: {
mountPath: "string",
sizeInGB: 0,
},
},
});
type: azure-native:appplatform:App
properties:
appName: string
identity:
principalId: string
tenantId: string
type: string
location: string
properties:
activeDeploymentName: string
fqdn: string
httpsOnly: false
persistentDisk:
mountPath: string
sizeInGB: 0
public: false
temporaryDisk:
mountPath: string
sizeInGB: 0
resourceGroupName: string
serviceName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The App resource accepts the following input properties:
- Resource
Group stringName - 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 string - The name of the Service resource.
- App
Name string - The name of the App resource.
- Identity
Pulumi.
Azure Native. App Platform. Inputs. Managed Identity Properties - 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.
Azure Native. App Platform. Inputs. App Resource Properties - Properties of the App resource
- Resource
Group stringName - 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 string - The name of the Service resource.
- App
Name string - The name of the App resource.
- Identity
Managed
Identity Properties Args - The Managed Identity type of the app resource
- Location string
- The GEO location of the application, always the same with its parent resource
- Properties
App
Resource Properties Args - Properties of the App resource
- resource
Group StringName - 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 String - The name of the Service resource.
- app
Name String - The name of the App resource.
- identity
Managed
Identity Properties - The Managed Identity type of the app resource
- location String
- The GEO location of the application, always the same with its parent resource
- properties
App
Resource Properties - Properties of the App resource
- resource
Group stringName - 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 string - The name of the Service resource.
- app
Name string - The name of the App resource.
- identity
Managed
Identity Properties - The Managed Identity type of the app resource
- location string
- The GEO location of the application, always the same with its parent resource
- properties
App
Resource Properties - Properties of the App resource
- resource_
group_ strname - 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
Managed
Identity Properties Args - The Managed Identity type of the app resource
- location str
- The GEO location of the application, always the same with its parent resource
- properties
App
Resource Properties Args - Properties of the App resource
- resource
Group StringName - 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 String - The name of the Service resource.
- app
Name 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:
Supporting Types
AppResourceProperties, AppResourcePropertiesArgs
- Active
Deployment stringName - Name of the active deployment of the App
- Fqdn string
- Fully qualified dns Name.
- Https
Only bool - Indicate if only https is allowed.
- Persistent
Disk Pulumi.Azure Native. App Platform. Inputs. Persistent Disk - Persistent disk settings
- Public bool
- Indicates whether the App exposes public endpoint
- Temporary
Disk Pulumi.Azure Native. App Platform. Inputs. Temporary Disk - Temporary disk settings
- Active
Deployment stringName - Name of the active deployment of the App
- Fqdn string
- 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
- active
Deployment StringName - Name of the active deployment of the App
- fqdn String
- Fully qualified dns Name.
- https
Only Boolean - Indicate if only https is allowed.
- persistent
Disk PersistentDisk - Persistent disk settings
- public_ Boolean
- Indicates whether the App exposes public endpoint
- temporary
Disk TemporaryDisk - Temporary disk settings
- active
Deployment stringName - Name of the active deployment of the App
- fqdn string
- Fully qualified dns Name.
- https
Only boolean - Indicate if only https is allowed.
- persistent
Disk PersistentDisk - Persistent disk settings
- public boolean
- Indicates whether the App exposes public endpoint
- temporary
Disk TemporaryDisk - Temporary disk settings
- active_
deployment_ strname - 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
- active
Deployment StringName - Name of the active deployment of the App
- fqdn String
- Fully qualified dns Name.
- https
Only Boolean - Indicate if only https is allowed.
- persistent
Disk Property Map - Persistent disk settings
- public Boolean
- Indicates whether the App exposes public endpoint
- temporary
Disk Property Map - Temporary disk settings
AppResourcePropertiesResponse, AppResourcePropertiesResponseArgs
- Created
Time string - Date time when the resource is created
- Provisioning
State string - Provisioning state of the App
- Url string
- URL of the App
- Active
Deployment stringName - Name of the active deployment of the App
- Fqdn string
- Fully qualified dns Name.
- Https
Only bool - Indicate if only https is allowed.
- Persistent
Disk Pulumi.Azure Native. App Platform. Inputs. Persistent Disk Response - Persistent disk settings
- Public bool
- Indicates whether the App exposes public endpoint
- Temporary
Disk Pulumi.Azure Native. App Platform. Inputs. Temporary Disk Response - Temporary disk settings
- Created
Time string - Date time when the resource is created
- Provisioning
State string - Provisioning state of the App
- Url string
- URL of the App
- Active
Deployment stringName - Name of the active deployment of the App
- Fqdn string
- Fully qualified dns Name.
- Https
Only bool - Indicate if only https is allowed.
- Persistent
Disk PersistentDisk Response - Persistent disk settings
- Public bool
- Indicates whether the App exposes public endpoint
- Temporary
Disk TemporaryDisk Response - Temporary disk settings
- created
Time String - Date time when the resource is created
- provisioning
State String - Provisioning state of the App
- url String
- URL of the App
- active
Deployment StringName - Name of the active deployment of the App
- fqdn String
- Fully qualified dns Name.
- https
Only Boolean - Indicate if only https is allowed.
- persistent
Disk PersistentDisk Response - Persistent disk settings
- public_ Boolean
- Indicates whether the App exposes public endpoint
- temporary
Disk TemporaryDisk Response - Temporary disk settings
- created
Time string - Date time when the resource is created
- provisioning
State string - Provisioning state of the App
- url string
- URL of the App
- active
Deployment stringName - Name of the active deployment of the App
- fqdn string
- Fully qualified dns Name.
- https
Only boolean - Indicate if only https is allowed.
- persistent
Disk PersistentDisk Response - Persistent disk settings
- public boolean
- Indicates whether the App exposes public endpoint
- temporary
Disk TemporaryDisk Response - 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_ strname - 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 Response - Persistent disk settings
- public bool
- Indicates whether the App exposes public endpoint
- temporary_
disk TemporaryDisk Response - Temporary disk settings
- created
Time String - Date time when the resource is created
- provisioning
State String - Provisioning state of the App
- url String
- URL of the App
- active
Deployment StringName - Name of the active deployment of the App
- fqdn String
- Fully qualified dns Name.
- https
Only Boolean - Indicate if only https is allowed.
- persistent
Disk Property Map - Persistent disk settings
- public Boolean
- Indicates whether the App exposes public endpoint
- temporary
Disk Property Map - Temporary disk settings
ManagedIdentityProperties, ManagedIdentityPropertiesArgs
- Principal
Id string - Principal Id
- Tenant
Id string - Tenant Id
- Type
string | Pulumi.
Azure Native. App Platform. Managed Identity Type - Type of the managed identity
- Principal
Id string - Principal Id
- Tenant
Id string - Tenant Id
- Type
string | Managed
Identity Type - Type of the managed identity
- principal
Id String - Principal Id
- tenant
Id String - Tenant Id
- type
String | Managed
Identity Type - Type of the managed identity
- principal
Id string - Principal Id
- tenant
Id string - Tenant Id
- type
string | Managed
Identity Type - Type of the managed identity
- principal_
id str - Principal Id
- tenant_
id str - Tenant Id
- type
str | Managed
Identity Type - Type of the managed identity
- principal
Id String - Principal Id
- tenant
Id String - Tenant Id
- type
String | "None" | "System
Assigned" | "User Assigned" | "System Assigned,User Assigned" - Type of the managed identity
ManagedIdentityPropertiesResponse, ManagedIdentityPropertiesResponseArgs
- Principal
Id string - Principal Id
- Tenant
Id string - Tenant Id
- Type string
- Type of the managed identity
- Principal
Id string - Principal Id
- Tenant
Id string - Tenant Id
- Type string
- Type of the managed identity
- principal
Id String - Principal Id
- tenant
Id String - Tenant Id
- type String
- Type of the managed identity
- principal
Id string - Principal Id
- tenant
Id 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
- principal
Id String - Principal Id
- tenant
Id String - Tenant Id
- type String
- Type of the managed identity
ManagedIdentityType, ManagedIdentityTypeArgs
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- Managed
Identity Type None - None
- Managed
Identity Type System Assigned - SystemAssigned
- Managed
Identity Type User Assigned - UserAssigned
- Managed
Identity Type_System Assigned_User Assigned - SystemAssigned,UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- USER_ASSIGNED
- UserAssigned
- SYSTEM_ASSIGNED_USER_ASSIGNED
- SystemAssigned,UserAssigned
- "None"
- None
- "System
Assigned" - SystemAssigned
- "User
Assigned" - UserAssigned
- "System
Assigned,User Assigned" - SystemAssigned,UserAssigned
PersistentDisk, PersistentDiskArgs
- mount_
path str - Mount path of the persistent disk
- size_
in_ intgb - Size of the persistent disk in GB
PersistentDiskResponse, PersistentDiskResponseArgs
- used_
in_ intgb - Size of the used persistent disk in GB
- mount_
path str - Mount path of the persistent disk
- size_
in_ intgb - Size of the persistent disk in GB
TemporaryDisk, TemporaryDiskArgs
- mount_
path str - Mount path of the temporary disk
- size_
in_ intgb - Size of the temporary disk in GB
TemporaryDiskResponse, TemporaryDiskResponseArgs
- mount_
path str - Mount path of the temporary disk
- size_
in_ intgb - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0