azure-native.visualstudio.Extension
Explore with Pulumi AI
The response to an extension resource GET request. API Version: 2014-04-01-preview.
Create Extension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Extension(name: string, args: ExtensionArgs, opts?: CustomResourceOptions);
@overload
def Extension(resource_name: str,
args: ExtensionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Extension(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_resource_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
extension_resource_name: Optional[str] = None,
location: Optional[str] = None,
plan: Optional[ExtensionResourcePlanArgs] = None,
properties: Optional[Mapping[str, str]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewExtension(ctx *Context, name string, args ExtensionArgs, opts ...ResourceOption) (*Extension, error)
public Extension(string name, ExtensionArgs args, CustomResourceOptions? opts = null)
public Extension(String name, ExtensionArgs args)
public Extension(String name, ExtensionArgs args, CustomResourceOptions options)
type: azure-native:visualstudio:Extension
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ExtensionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ExtensionArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ExtensionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ExtensionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ExtensionArgs - 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 exampleextensionResourceResourceFromVisualstudio = new AzureNative.Visualstudio.Extension("exampleextensionResourceResourceFromVisualstudio", new()
{
AccountResourceName = "string",
ResourceGroupName = "string",
ExtensionResourceName = "string",
Location = "string",
Plan =
{
{ "name", "string" },
{ "product", "string" },
{ "promotionCode", "string" },
{ "publisher", "string" },
{ "version", "string" },
},
Properties =
{
{ "string", "string" },
},
Tags =
{
{ "string", "string" },
},
});
example, err := visualstudio.NewExtension(ctx, "exampleextensionResourceResourceFromVisualstudio", &visualstudio.ExtensionArgs{
AccountResourceName: "string",
ResourceGroupName: "string",
ExtensionResourceName: "string",
Location: "string",
Plan: map[string]interface{}{
"name": "string",
"product": "string",
"promotionCode": "string",
"publisher": "string",
"version": "string",
},
Properties: map[string]interface{}{
"string": "string",
},
Tags: map[string]interface{}{
"string": "string",
},
})
var exampleextensionResourceResourceFromVisualstudio = new Extension("exampleextensionResourceResourceFromVisualstudio", ExtensionArgs.builder()
.accountResourceName("string")
.resourceGroupName("string")
.extensionResourceName("string")
.location("string")
.plan(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
exampleextension_resource_resource_from_visualstudio = azure_native.visualstudio.Extension("exampleextensionResourceResourceFromVisualstudio",
account_resource_name=string,
resource_group_name=string,
extension_resource_name=string,
location=string,
plan={
name: string,
product: string,
promotionCode: string,
publisher: string,
version: string,
},
properties={
string: string,
},
tags={
string: string,
})
const exampleextensionResourceResourceFromVisualstudio = new azure_native.visualstudio.Extension("exampleextensionResourceResourceFromVisualstudio", {
accountResourceName: "string",
resourceGroupName: "string",
extensionResourceName: "string",
location: "string",
plan: {
name: "string",
product: "string",
promotionCode: "string",
publisher: "string",
version: "string",
},
properties: {
string: "string",
},
tags: {
string: "string",
},
});
type: azure-native:visualstudio:Extension
properties:
accountResourceName: string
extensionResourceName: string
location: string
plan:
name: string
product: string
promotionCode: string
publisher: string
version: string
properties:
string: string
resourceGroupName: string
tags:
string: string
Extension 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 Extension resource accepts the following input properties:
- Account
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the Visual Studio Team Services account resource.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group within the Azure subscription.
- Extension
Resource Name Changes to this property will trigger replacement.
- The name of the extension.
- Location string
- The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
- Plan
Pulumi.
Azure Native. Visual Studio. Inputs. Extension Resource Plan - Extended information about the plan being purchased for this extension resource.
- Properties Dictionary<string, string>
- A dictionary of extended properties. This property is currently unused.
- Dictionary<string, string>
- A dictionary of user-defined tags to be stored with the extension resource.
- Account
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the Visual Studio Team Services account resource.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group within the Azure subscription.
- Extension
Resource Name Changes to this property will trigger replacement.
- The name of the extension.
- Location string
- The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
- Plan
Extension
Resource Plan Args - Extended information about the plan being purchased for this extension resource.
- Properties map[string]string
- A dictionary of extended properties. This property is currently unused.
- map[string]string
- A dictionary of user-defined tags to be stored with the extension resource.
- account
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the Visual Studio Team Services account resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group within the Azure subscription.
- extension
Resource Name Changes to this property will trigger replacement.
- The name of the extension.
- location String
- The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
- plan
Extension
Resource Plan - Extended information about the plan being purchased for this extension resource.
- properties Map<String,String>
- A dictionary of extended properties. This property is currently unused.
- Map<String,String>
- A dictionary of user-defined tags to be stored with the extension resource.
- account
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the Visual Studio Team Services account resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group within the Azure subscription.
- extension
Resource Name Changes to this property will trigger replacement.
- The name of the extension.
- location string
- The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
- plan
Extension
Resource Plan - Extended information about the plan being purchased for this extension resource.
- properties {[key: string]: string}
- A dictionary of extended properties. This property is currently unused.
- {[key: string]: string}
- A dictionary of user-defined tags to be stored with the extension resource.
- account_
resource_ name This property is required. Changes to this property will trigger replacement.
- The name of the Visual Studio Team Services account resource.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of the resource group within the Azure subscription.
- extension_
resource_ name Changes to this property will trigger replacement.
- The name of the extension.
- location str
- The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
- plan
Extension
Resource Plan Args - Extended information about the plan being purchased for this extension resource.
- properties Mapping[str, str]
- A dictionary of extended properties. This property is currently unused.
- Mapping[str, str]
- A dictionary of user-defined tags to be stored with the extension resource.
- account
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the Visual Studio Team Services account resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group within the Azure subscription.
- extension
Resource Name Changes to this property will trigger replacement.
- The name of the extension.
- location String
- The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
- plan Property Map
- Extended information about the plan being purchased for this extension resource.
- properties Map<String>
- A dictionary of extended properties. This property is currently unused.
- Map<String>
- A dictionary of user-defined tags to be stored with the extension resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Extension resource produces the following output properties:
Supporting Types
ExtensionResourcePlan, ExtensionResourcePlanArgs
- Name string
- Name of the plan.
- Product string
- Product name.
- Promotion
Code string - Optional: the promotion code associated with the plan.
- Publisher string
- Name of the extension publisher.
- Version string
- A string that uniquely identifies the plan version.
- Name string
- Name of the plan.
- Product string
- Product name.
- Promotion
Code string - Optional: the promotion code associated with the plan.
- Publisher string
- Name of the extension publisher.
- Version string
- A string that uniquely identifies the plan version.
- name String
- Name of the plan.
- product String
- Product name.
- promotion
Code String - Optional: the promotion code associated with the plan.
- publisher String
- Name of the extension publisher.
- version String
- A string that uniquely identifies the plan version.
- name string
- Name of the plan.
- product string
- Product name.
- promotion
Code string - Optional: the promotion code associated with the plan.
- publisher string
- Name of the extension publisher.
- version string
- A string that uniquely identifies the plan version.
- name str
- Name of the plan.
- product str
- Product name.
- promotion_
code str - Optional: the promotion code associated with the plan.
- publisher str
- Name of the extension publisher.
- version str
- A string that uniquely identifies the plan version.
- name String
- Name of the plan.
- product String
- Product name.
- promotion
Code String - Optional: the promotion code associated with the plan.
- publisher String
- Name of the extension publisher.
- version String
- A string that uniquely identifies the plan version.
ExtensionResourcePlanResponse, ExtensionResourcePlanResponseArgs
- Name string
- Name of the plan.
- Product string
- Product name.
- Promotion
Code string - Optional: the promotion code associated with the plan.
- Publisher string
- Name of the extension publisher.
- Version string
- A string that uniquely identifies the plan version.
- Name string
- Name of the plan.
- Product string
- Product name.
- Promotion
Code string - Optional: the promotion code associated with the plan.
- Publisher string
- Name of the extension publisher.
- Version string
- A string that uniquely identifies the plan version.
- name String
- Name of the plan.
- product String
- Product name.
- promotion
Code String - Optional: the promotion code associated with the plan.
- publisher String
- Name of the extension publisher.
- version String
- A string that uniquely identifies the plan version.
- name string
- Name of the plan.
- product string
- Product name.
- promotion
Code string - Optional: the promotion code associated with the plan.
- publisher string
- Name of the extension publisher.
- version string
- A string that uniquely identifies the plan version.
- name str
- Name of the plan.
- product str
- Product name.
- promotion_
code str - Optional: the promotion code associated with the plan.
- publisher str
- Name of the extension publisher.
- version str
- A string that uniquely identifies the plan version.
- name String
- Name of the plan.
- product String
- Product name.
- promotion
Code String - Optional: the promotion code associated with the plan.
- publisher String
- Name of the extension publisher.
- version String
- A string that uniquely identifies the plan version.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:visualstudio:Extension ms.example /subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/Microsoft.VisualStudio/account/ExampleAccount/extension/ms.example
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