Azure Native v1.103.0, Jun 2 23
Azure Native v1.103.0, Jun 2 23
azure-native.resources.Resource
Explore with Pulumi AI
Resource information. API Version: 2019-05-01.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:resources:Resource myresource1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}
Create Resource Resource
new Resource(name: string, args: ResourceArgs, opts?: CustomResourceOptions);
@overload
def Resource(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[IdentityArgs] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
managed_by: Optional[str] = None,
parent_resource_path: Optional[str] = None,
plan: Optional[PlanArgs] = None,
properties: Optional[Any] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
resource_provider_namespace: Optional[str] = None,
resource_type: Optional[str] = None,
sku: Optional[SkuArgs] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Resource(resource_name: str,
args: ResourceArgs,
opts: Optional[ResourceOptions] = None)
func NewResource(ctx *Context, name string, args ResourceArgs, opts ...ResourceOption) (*Resource, error)
public Resource(string name, ResourceArgs args, CustomResourceOptions? opts = null)
public Resource(String name, ResourceArgs args)
public Resource(String name, ResourceArgs args, CustomResourceOptions options)
type: azure-native:resources:Resource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceArgs
- 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 ResourceArgs
- 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 ResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Resource 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 Resource resource accepts the following input properties:
- Parent
Resource stringPath The parent resource identity.
- Resource
Group stringName The name of the resource group for the resource. The name is case insensitive.
- Resource
Provider stringNamespace The namespace of the resource provider.
- Resource
Type string The resource type of the resource to create.
- Identity
Pulumi.
Azure Native. Resources. Inputs. Identity Args The identity of the resource.
- Kind string
The kind of the resource.
- Location string
Resource location
- Managed
By string ID of the resource that manages this resource.
- Plan
Pulumi.
Azure Native. Resources. Inputs. Plan Args The plan of the resource.
- Properties object
The resource properties.
- Resource
Name string The name of the resource to create.
- Sku
Pulumi.
Azure Native. Resources. Inputs. Sku Args The SKU of the resource.
- Dictionary<string, string>
Resource tags
- Parent
Resource stringPath The parent resource identity.
- Resource
Group stringName The name of the resource group for the resource. The name is case insensitive.
- Resource
Provider stringNamespace The namespace of the resource provider.
- Resource
Type string The resource type of the resource to create.
- Identity
Identity
Args The identity of the resource.
- Kind string
The kind of the resource.
- Location string
Resource location
- Managed
By string ID of the resource that manages this resource.
- Plan
Plan
Args The plan of the resource.
- Properties interface{}
The resource properties.
- Resource
Name string The name of the resource to create.
- Sku
Sku
Args The SKU of the resource.
- map[string]string
Resource tags
- parent
Resource StringPath The parent resource identity.
- resource
Group StringName The name of the resource group for the resource. The name is case insensitive.
- resource
Provider StringNamespace The namespace of the resource provider.
- resource
Type String The resource type of the resource to create.
- identity
Identity
Args The identity of the resource.
- kind String
The kind of the resource.
- location String
Resource location
- managed
By String ID of the resource that manages this resource.
- plan
Plan
Args The plan of the resource.
- properties Object
The resource properties.
- resource
Name String The name of the resource to create.
- sku
Sku
Args The SKU of the resource.
- Map<String,String>
Resource tags
- parent
Resource stringPath The parent resource identity.
- resource
Group stringName The name of the resource group for the resource. The name is case insensitive.
- resource
Provider stringNamespace The namespace of the resource provider.
- resource
Type string The resource type of the resource to create.
- identity
Identity
Args The identity of the resource.
- kind string
The kind of the resource.
- location string
Resource location
- managed
By string ID of the resource that manages this resource.
- plan
Plan
Args The plan of the resource.
- properties any
The resource properties.
- resource
Name string The name of the resource to create.
- sku
Sku
Args The SKU of the resource.
- {[key: string]: string}
Resource tags
- parent_
resource_ strpath The parent resource identity.
- resource_
group_ strname The name of the resource group for the resource. The name is case insensitive.
- resource_
provider_ strnamespace The namespace of the resource provider.
- resource_
type str The resource type of the resource to create.
- identity
Identity
Args The identity of the resource.
- kind str
The kind of the resource.
- location str
Resource location
- managed_
by str ID of the resource that manages this resource.
- plan
Plan
Args The plan of the resource.
- properties Any
The resource properties.
- resource_
name str The name of the resource to create.
- sku
Sku
Args The SKU of the resource.
- Mapping[str, str]
Resource tags
- parent
Resource StringPath The parent resource identity.
- resource
Group StringName The name of the resource group for the resource. The name is case insensitive.
- resource
Provider StringNamespace The namespace of the resource provider.
- resource
Type String The resource type of the resource to create.
- identity Property Map
The identity of the resource.
- kind String
The kind of the resource.
- location String
Resource location
- managed
By String ID of the resource that manages this resource.
- plan Property Map
The plan of the resource.
- properties Any
The resource properties.
- resource
Name String The name of the resource to create.
- sku Property Map
The SKU of the resource.
- Map<String>
Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the Resource resource produces the following output properties:
Supporting Types
Identity
- Type
Pulumi.
Azure Native. Resources. Resource Identity Type The identity type.
- User
Assigned Dictionary<string, object>Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Type
Resource
Identity Type The identity type.
- User
Assigned map[string]interface{}Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
Resource
Identity Type The identity type.
- user
Assigned Map<String,Object>Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
Resource
Identity Type The identity type.
- user
Assigned {[key: string]: any}Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
Resource
Identity Type The identity type.
- user_
assigned_ Mapping[str, Any]identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
"System
Assigned" | "User Assigned" | "System Assigned, User Assigned" | "None" The identity type.
- user
Assigned Map<Any>Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
IdentityResponse
- Principal
Id string The principal ID of resource identity.
- Tenant
Id string The tenant ID of resource.
- Type string
The identity type.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Resources. Inputs. Identity Response User Assigned Identities> The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Principal
Id string The principal ID of resource identity.
- Tenant
Id string The tenant ID of resource.
- Type string
The identity type.
- User
Assigned map[string]IdentityIdentities Response User Assigned Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id String The principal ID of resource identity.
- tenant
Id String The tenant ID of resource.
- type String
The identity type.
- user
Assigned Map<String,IdentityIdentities Response User Assigned Identities> The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id string The principal ID of resource identity.
- tenant
Id string The tenant ID of resource.
- type string
The identity type.
- user
Assigned {[key: string]: IdentityIdentities Response User Assigned Identities} The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal_
id str The principal ID of resource identity.
- tenant_
id str The tenant ID of resource.
- type str
The identity type.
- user_
assigned_ Mapping[str, Identityidentities Response User Assigned Identities] The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id String The principal ID of resource identity.
- tenant
Id String The tenant ID of resource.
- type String
The identity type.
- user
Assigned Map<Property Map>Identities The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
IdentityResponseUserAssignedIdentities
- Client
Id string The client id of user assigned identity.
- Principal
Id string The principal id of user assigned identity.
- Client
Id string The client id of user assigned identity.
- Principal
Id string The principal id of user assigned identity.
- client
Id String The client id of user assigned identity.
- principal
Id String The principal id of user assigned identity.
- client
Id string The client id of user assigned identity.
- principal
Id string The principal id of user assigned identity.
- client_
id str The client id of user assigned identity.
- principal_
id str The principal id of user assigned identity.
- client
Id String The client id of user assigned identity.
- principal
Id String The principal id of user assigned identity.
Plan
- Name string
The plan ID.
- Product string
The offer ID.
- Promotion
Code string The promotion code.
- Publisher string
The publisher ID.
- Version string
The plan's version.
- Name string
The plan ID.
- Product string
The offer ID.
- Promotion
Code string The promotion code.
- Publisher string
The publisher ID.
- Version string
The plan's version.
- name String
The plan ID.
- product String
The offer ID.
- promotion
Code String The promotion code.
- publisher String
The publisher ID.
- version String
The plan's version.
- name string
The plan ID.
- product string
The offer ID.
- promotion
Code string The promotion code.
- publisher string
The publisher ID.
- version string
The plan's version.
- name str
The plan ID.
- product str
The offer ID.
- promotion_
code str The promotion code.
- publisher str
The publisher ID.
- version str
The plan's version.
- name String
The plan ID.
- product String
The offer ID.
- promotion
Code String The promotion code.
- publisher String
The publisher ID.
- version String
The plan's version.
PlanResponse
- Name string
The plan ID.
- Product string
The offer ID.
- Promotion
Code string The promotion code.
- Publisher string
The publisher ID.
- Version string
The plan's version.
- Name string
The plan ID.
- Product string
The offer ID.
- Promotion
Code string The promotion code.
- Publisher string
The publisher ID.
- Version string
The plan's version.
- name String
The plan ID.
- product String
The offer ID.
- promotion
Code String The promotion code.
- publisher String
The publisher ID.
- version String
The plan's version.
- name string
The plan ID.
- product string
The offer ID.
- promotion
Code string The promotion code.
- publisher string
The publisher ID.
- version string
The plan's version.
- name str
The plan ID.
- product str
The offer ID.
- promotion_
code str The promotion code.
- publisher str
The publisher ID.
- version str
The plan's version.
- name String
The plan ID.
- product String
The offer ID.
- promotion
Code String The promotion code.
- publisher String
The publisher ID.
- version String
The plan's version.
ResourceIdentityType
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned, UserAssigned
- None
- None
- Resource
Identity Type System Assigned - SystemAssigned
- Resource
Identity Type User Assigned - UserAssigned
- Resource
Identity Type_System Assigned_User Assigned - SystemAssigned, UserAssigned
- Resource
Identity Type 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
- "None"
- None
Sku
SkuResponse
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0