We recommend using Azure Native.
azure.managedapplication.Definition
Explore with Pulumi AI
Manages a Managed Application Definition.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const current = azure.core.getClientConfig({});
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleDefinition = new azure.managedapplication.Definition("example", {
name: "examplemanagedapplicationdefinition",
location: example.location,
resourceGroupName: example.name,
lockLevel: "ReadOnly",
packageFileUri: "https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip",
displayName: "TestManagedApplicationDefinition",
description: "Test Managed Application Definition",
authorizations: [{
servicePrincipalId: current.then(current => current.objectId),
roleDefinitionId: "a094b430-dad3-424d-ae58-13f72fd72591",
}],
});
import pulumi
import pulumi_azure as azure
current = azure.core.get_client_config()
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_definition = azure.managedapplication.Definition("example",
name="examplemanagedapplicationdefinition",
location=example.location,
resource_group_name=example.name,
lock_level="ReadOnly",
package_file_uri="https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip",
display_name="TestManagedApplicationDefinition",
description="Test Managed Application Definition",
authorizations=[{
"service_principal_id": current.object_id,
"role_definition_id": "a094b430-dad3-424d-ae58-13f72fd72591",
}])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/managedapplication"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = managedapplication.NewDefinition(ctx, "example", &managedapplication.DefinitionArgs{
Name: pulumi.String("examplemanagedapplicationdefinition"),
Location: example.Location,
ResourceGroupName: example.Name,
LockLevel: pulumi.String("ReadOnly"),
PackageFileUri: pulumi.String("https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip"),
DisplayName: pulumi.String("TestManagedApplicationDefinition"),
Description: pulumi.String("Test Managed Application Definition"),
Authorizations: managedapplication.DefinitionAuthorizationArray{
&managedapplication.DefinitionAuthorizationArgs{
ServicePrincipalId: pulumi.String(current.ObjectId),
RoleDefinitionId: pulumi.String("a094b430-dad3-424d-ae58-13f72fd72591"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var current = Azure.Core.GetClientConfig.Invoke();
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleDefinition = new Azure.ManagedApplication.Definition("example", new()
{
Name = "examplemanagedapplicationdefinition",
Location = example.Location,
ResourceGroupName = example.Name,
LockLevel = "ReadOnly",
PackageFileUri = "https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip",
DisplayName = "TestManagedApplicationDefinition",
Description = "Test Managed Application Definition",
Authorizations = new[]
{
new Azure.ManagedApplication.Inputs.DefinitionAuthorizationArgs
{
ServicePrincipalId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
RoleDefinitionId = "a094b430-dad3-424d-ae58-13f72fd72591",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.managedapplication.Definition;
import com.pulumi.azure.managedapplication.DefinitionArgs;
import com.pulumi.azure.managedapplication.inputs.DefinitionAuthorizationArgs;
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) {
final var current = CoreFunctions.getClientConfig();
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleDefinition = new Definition("exampleDefinition", DefinitionArgs.builder()
.name("examplemanagedapplicationdefinition")
.location(example.location())
.resourceGroupName(example.name())
.lockLevel("ReadOnly")
.packageFileUri("https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip")
.displayName("TestManagedApplicationDefinition")
.description("Test Managed Application Definition")
.authorizations(DefinitionAuthorizationArgs.builder()
.servicePrincipalId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
.roleDefinitionId("a094b430-dad3-424d-ae58-13f72fd72591")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleDefinition:
type: azure:managedapplication:Definition
name: example
properties:
name: examplemanagedapplicationdefinition
location: ${example.location}
resourceGroupName: ${example.name}
lockLevel: ReadOnly
packageFileUri: https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip
displayName: TestManagedApplicationDefinition
description: Test Managed Application Definition
authorizations:
- servicePrincipalId: ${current.objectId}
roleDefinitionId: a094b430-dad3-424d-ae58-13f72fd72591
variables:
current:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
Create Definition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Definition(name: string, args: DefinitionArgs, opts?: CustomResourceOptions);
@overload
def Definition(resource_name: str,
args: DefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Definition(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
lock_level: Optional[str] = None,
resource_group_name: Optional[str] = None,
authorizations: Optional[Sequence[DefinitionAuthorizationArgs]] = None,
create_ui_definition: Optional[str] = None,
description: Optional[str] = None,
location: Optional[str] = None,
main_template: Optional[str] = None,
name: Optional[str] = None,
package_enabled: Optional[bool] = None,
package_file_uri: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDefinition(ctx *Context, name string, args DefinitionArgs, opts ...ResourceOption) (*Definition, error)
public Definition(string name, DefinitionArgs args, CustomResourceOptions? opts = null)
public Definition(String name, DefinitionArgs args)
public Definition(String name, DefinitionArgs args, CustomResourceOptions options)
type: azure:managedapplication:Definition
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 DefinitionArgs
- 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 DefinitionArgs
- 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 DefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefinitionArgs
- 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 azureDefinitionResource = new Azure.ManagedApplication.Definition("azureDefinitionResource", new()
{
DisplayName = "string",
LockLevel = "string",
ResourceGroupName = "string",
Authorizations = new[]
{
new Azure.ManagedApplication.Inputs.DefinitionAuthorizationArgs
{
RoleDefinitionId = "string",
ServicePrincipalId = "string",
},
},
CreateUiDefinition = "string",
Description = "string",
Location = "string",
MainTemplate = "string",
Name = "string",
PackageEnabled = false,
PackageFileUri = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := managedapplication.NewDefinition(ctx, "azureDefinitionResource", &managedapplication.DefinitionArgs{
DisplayName: pulumi.String("string"),
LockLevel: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Authorizations: managedapplication.DefinitionAuthorizationArray{
&managedapplication.DefinitionAuthorizationArgs{
RoleDefinitionId: pulumi.String("string"),
ServicePrincipalId: pulumi.String("string"),
},
},
CreateUiDefinition: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
MainTemplate: pulumi.String("string"),
Name: pulumi.String("string"),
PackageEnabled: pulumi.Bool(false),
PackageFileUri: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azureDefinitionResource = new Definition("azureDefinitionResource", DefinitionArgs.builder()
.displayName("string")
.lockLevel("string")
.resourceGroupName("string")
.authorizations(DefinitionAuthorizationArgs.builder()
.roleDefinitionId("string")
.servicePrincipalId("string")
.build())
.createUiDefinition("string")
.description("string")
.location("string")
.mainTemplate("string")
.name("string")
.packageEnabled(false)
.packageFileUri("string")
.tags(Map.of("string", "string"))
.build());
azure_definition_resource = azure.managedapplication.Definition("azureDefinitionResource",
display_name="string",
lock_level="string",
resource_group_name="string",
authorizations=[{
"role_definition_id": "string",
"service_principal_id": "string",
}],
create_ui_definition="string",
description="string",
location="string",
main_template="string",
name="string",
package_enabled=False,
package_file_uri="string",
tags={
"string": "string",
})
const azureDefinitionResource = new azure.managedapplication.Definition("azureDefinitionResource", {
displayName: "string",
lockLevel: "string",
resourceGroupName: "string",
authorizations: [{
roleDefinitionId: "string",
servicePrincipalId: "string",
}],
createUiDefinition: "string",
description: "string",
location: "string",
mainTemplate: "string",
name: "string",
packageEnabled: false,
packageFileUri: "string",
tags: {
string: "string",
},
});
type: azure:managedapplication:Definition
properties:
authorizations:
- roleDefinitionId: string
servicePrincipalId: string
createUiDefinition: string
description: string
displayName: string
location: string
lockLevel: string
mainTemplate: string
name: string
packageEnabled: false
packageFileUri: string
resourceGroupName: string
tags:
string: string
Definition 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 Definition resource accepts the following input properties:
- Display
Name string - Specifies the managed application definition display name.
- Lock
Level string - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- List<Definition
Authorization> - One or more
authorization
block defined below. - Create
Ui stringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - Description string
- Specifies the managed application definition description.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Main
Template string - Specifies the inline main template JSON which has resources to be provisioned.
- Name string
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- Package
Enabled bool - Is the package enabled? Defaults to
true
. - Package
File stringUri - Specifies the managed application definition package file Uri.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- Display
Name string - Specifies the managed application definition display name.
- Lock
Level string - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- []Definition
Authorization Args - One or more
authorization
block defined below. - Create
Ui stringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - Description string
- Specifies the managed application definition description.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Main
Template string - Specifies the inline main template JSON which has resources to be provisioned.
- Name string
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- Package
Enabled bool - Is the package enabled? Defaults to
true
. - Package
File stringUri - Specifies the managed application definition package file Uri.
- map[string]string
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- display
Name String - Specifies the managed application definition display name.
- lock
Level String - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- List<Definition
Authorization> - One or more
authorization
block defined below. - create
Ui StringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description String
- Specifies the managed application definition description.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- main
Template String - Specifies the inline main template JSON which has resources to be provisioned.
- name String
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package
Enabled Boolean - Is the package enabled? Defaults to
true
. - package
File StringUri - Specifies the managed application definition package file Uri.
- Map<String,String>
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- display
Name string - Specifies the managed application definition display name.
- lock
Level string - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - resource
Group stringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- Definition
Authorization[] - One or more
authorization
block defined below. - create
Ui stringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description string
- Specifies the managed application definition description.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- main
Template string - Specifies the inline main template JSON which has resources to be provisioned.
- name string
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package
Enabled boolean - Is the package enabled? Defaults to
true
. - package
File stringUri - Specifies the managed application definition package file Uri.
- {[key: string]: string}
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- display_
name str - Specifies the managed application definition display name.
- lock_
level str - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - resource_
group_ strname - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- Sequence[Definition
Authorization Args] - One or more
authorization
block defined below. - create_
ui_ strdefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description str
- Specifies the managed application definition description.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- main_
template str - Specifies the inline main template JSON which has resources to be provisioned.
- name str
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package_
enabled bool - Is the package enabled? Defaults to
true
. - package_
file_ struri - Specifies the managed application definition package file Uri.
- Mapping[str, str]
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- display
Name String - Specifies the managed application definition display name.
- lock
Level String - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- List<Property Map>
- One or more
authorization
block defined below. - create
Ui StringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description String
- Specifies the managed application definition description.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- main
Template String - Specifies the inline main template JSON which has resources to be provisioned.
- name String
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package
Enabled Boolean - Is the package enabled? Defaults to
true
. - package
File StringUri - Specifies the managed application definition package file Uri.
- Map<String>
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
Outputs
All input properties are implicitly available as output properties. Additionally, the Definition resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Definition Resource
Get an existing Definition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DefinitionState, opts?: CustomResourceOptions): Definition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorizations: Optional[Sequence[DefinitionAuthorizationArgs]] = None,
create_ui_definition: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
location: Optional[str] = None,
lock_level: Optional[str] = None,
main_template: Optional[str] = None,
name: Optional[str] = None,
package_enabled: Optional[bool] = None,
package_file_uri: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Definition
func GetDefinition(ctx *Context, name string, id IDInput, state *DefinitionState, opts ...ResourceOption) (*Definition, error)
public static Definition Get(string name, Input<string> id, DefinitionState? state, CustomResourceOptions? opts = null)
public static Definition get(String name, Output<String> id, DefinitionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- List<Definition
Authorization> - One or more
authorization
block defined below. - Create
Ui stringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - Description string
- Specifies the managed application definition description.
- Display
Name string - Specifies the managed application definition display name.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Lock
Level string - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - Main
Template string - Specifies the inline main template JSON which has resources to be provisioned.
- Name string
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- Package
Enabled bool - Is the package enabled? Defaults to
true
. - Package
File stringUri - Specifies the managed application definition package file Uri.
- Resource
Group stringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- []Definition
Authorization Args - One or more
authorization
block defined below. - Create
Ui stringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - Description string
- Specifies the managed application definition description.
- Display
Name string - Specifies the managed application definition display name.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Lock
Level string - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - Main
Template string - Specifies the inline main template JSON which has resources to be provisioned.
- Name string
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- Package
Enabled bool - Is the package enabled? Defaults to
true
. - Package
File stringUri - Specifies the managed application definition package file Uri.
- Resource
Group stringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- List<Definition
Authorization> - One or more
authorization
block defined below. - create
Ui StringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description String
- Specifies the managed application definition description.
- display
Name String - Specifies the managed application definition display name.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- lock
Level String - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - main
Template String - Specifies the inline main template JSON which has resources to be provisioned.
- name String
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package
Enabled Boolean - Is the package enabled? Defaults to
true
. - package
File StringUri - Specifies the managed application definition package file Uri.
- resource
Group StringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- Map<String,String>
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- Definition
Authorization[] - One or more
authorization
block defined below. - create
Ui stringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description string
- Specifies the managed application definition description.
- display
Name string - Specifies the managed application definition display name.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- lock
Level string - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - main
Template string - Specifies the inline main template JSON which has resources to be provisioned.
- name string
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package
Enabled boolean - Is the package enabled? Defaults to
true
. - package
File stringUri - Specifies the managed application definition package file Uri.
- resource
Group stringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- Sequence[Definition
Authorization Args] - One or more
authorization
block defined below. - create_
ui_ strdefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description str
- Specifies the managed application definition description.
- display_
name str - Specifies the managed application definition display name.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- lock_
level str - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - main_
template str - Specifies the inline main template JSON which has resources to be provisioned.
- name str
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package_
enabled bool - Is the package enabled? Defaults to
true
. - package_
file_ struri - Specifies the managed application definition package file Uri.
- resource_
group_ strname - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- Mapping[str, str]
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
- List<Property Map>
- One or more
authorization
block defined below. - create
Ui StringDefinition - Specifies the
createUiDefinition
JSON for the backing template withMicrosoft.Solutions/applications
resource. - description String
- Specifies the managed application definition description.
- display
Name String - Specifies the managed application definition display name.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- lock
Level String - Specifies the managed application lock level. Valid values include
CanNotDelete
,None
,ReadOnly
. Changing this forces a new resource to be created. - main
Template String - Specifies the inline main template JSON which has resources to be provisioned.
- name String
- Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
- package
Enabled Boolean - Is the package enabled? Defaults to
true
. - package
File StringUri - Specifies the managed application definition package file Uri.
- resource
Group StringName - The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
- Map<String>
A mapping of tags to assign to the resource.
NOTE: If either
create_ui_definition
ormain_template
is set they both must be set.
Supporting Types
DefinitionAuthorization, DefinitionAuthorizationArgs
- Role
Definition stringId - Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
- Service
Principal stringId - Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
- Role
Definition stringId - Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
- Service
Principal stringId - Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
- role
Definition StringId - Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
- service
Principal StringId - Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
- role
Definition stringId - Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
- service
Principal stringId - Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
- role_
definition_ strid - Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
- service_
principal_ strid - Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
- role
Definition StringId - Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
- service
Principal StringId - Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
Import
Managed Application Definition can be imported using the resource id
, e.g.
$ pulumi import azure:managedapplication/definition:Definition example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Solutions/applicationDefinitions/appDefinition1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.