1. Packages
  2. Azure Native
  3. API Docs
  4. visualstudio
  5. Extension
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.visualstudio.Extension

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    The response to an extension resource GET request. Azure REST API version: 2017-11-01-preview. Prior API version in Azure Native 1.x: 2014-04-01-preview.

    Example Usage

    Create an extension resource

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var extension = new AzureNative.VisualStudio.Extension("extension", new()
        {
            AccountResourceName = "ExampleAccount",
            ExtensionResourceName = "ms.example",
            Location = "Central US",
            Plan = new AzureNative.VisualStudio.Inputs.ExtensionResourcePlanArgs
            {
                Name = "ExamplePlan",
                Product = "ExampleExtensionName",
                PromotionCode = "",
                Publisher = "ExampleExtensionPublisher",
                Version = "1.0",
            },
            Properties = null,
            ResourceGroupName = "VS-Example-Group",
            Tags = null,
        });
    
    });
    
    package main
    
    import (
    	visualstudio "github.com/pulumi/pulumi-azure-native-sdk/visualstudio/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := visualstudio.NewExtension(ctx, "extension", &visualstudio.ExtensionArgs{
    			AccountResourceName:   pulumi.String("ExampleAccount"),
    			ExtensionResourceName: pulumi.String("ms.example"),
    			Location:              pulumi.String("Central US"),
    			Plan: &visualstudio.ExtensionResourcePlanArgs{
    				Name:          pulumi.String("ExamplePlan"),
    				Product:       pulumi.String("ExampleExtensionName"),
    				PromotionCode: pulumi.String(""),
    				Publisher:     pulumi.String("ExampleExtensionPublisher"),
    				Version:       pulumi.String("1.0"),
    			},
    			Properties:        pulumi.StringMap{},
    			ResourceGroupName: pulumi.String("VS-Example-Group"),
    			Tags:              pulumi.StringMap{},
    		})
    		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.visualstudio.Extension;
    import com.pulumi.azurenative.visualstudio.ExtensionArgs;
    import com.pulumi.azurenative.visualstudio.inputs.ExtensionResourcePlanArgs;
    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 extension = new Extension("extension", ExtensionArgs.builder()
                .accountResourceName("ExampleAccount")
                .extensionResourceName("ms.example")
                .location("Central US")
                .plan(ExtensionResourcePlanArgs.builder()
                    .name("ExamplePlan")
                    .product("ExampleExtensionName")
                    .promotionCode("")
                    .publisher("ExampleExtensionPublisher")
                    .version("1.0")
                    .build())
                .properties()
                .resourceGroupName("VS-Example-Group")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    extension = azure_native.visualstudio.Extension("extension",
        account_resource_name="ExampleAccount",
        extension_resource_name="ms.example",
        location="Central US",
        plan={
            "name": "ExamplePlan",
            "product": "ExampleExtensionName",
            "promotion_code": "",
            "publisher": "ExampleExtensionPublisher",
            "version": "1.0",
        },
        properties={},
        resource_group_name="VS-Example-Group",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const extension = new azure_native.visualstudio.Extension("extension", {
        accountResourceName: "ExampleAccount",
        extensionResourceName: "ms.example",
        location: "Central US",
        plan: {
            name: "ExamplePlan",
            product: "ExampleExtensionName",
            promotionCode: "",
            publisher: "ExampleExtensionPublisher",
            version: "1.0",
        },
        properties: {},
        resourceGroupName: "VS-Example-Group",
        tags: {},
    });
    
    resources:
      extension:
        type: azure-native:visualstudio:Extension
        properties:
          accountResourceName: ExampleAccount
          extensionResourceName: ms.example
          location: Central US
          plan:
            name: ExamplePlan
            product: ExampleExtensionName
            promotionCode:
            publisher: ExampleExtensionPublisher
            version: '1.0'
          properties: {}
          resourceGroupName: VS-Example-Group
          tags: {}
    

    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 string
    The unique name of the resource.
    args ExtensionArgs
    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 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 string
    The unique name of the resource.
    args ExtensionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExtensionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 = new AzureNative.VisualStudio.Inputs.ExtensionResourcePlanArgs
        {
            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:   pulumi.String("string"),
    	ResourceGroupName:     pulumi.String("string"),
    	ExtensionResourceName: pulumi.String("string"),
    	Location:              pulumi.String("string"),
    	Plan: &visualstudio.ExtensionResourcePlanArgs{
    		Name:          pulumi.String("string"),
    		Product:       pulumi.String("string"),
    		PromotionCode: pulumi.String("string"),
    		Publisher:     pulumi.String("string"),
    		Version:       pulumi.String("string"),
    	},
    	Properties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var exampleextensionResourceResourceFromVisualstudio = new Extension("exampleextensionResourceResourceFromVisualstudio", ExtensionArgs.builder()
        .accountResourceName("string")
        .resourceGroupName("string")
        .extensionResourceName("string")
        .location("string")
        .plan(ExtensionResourcePlanArgs.builder()
            .name("string")
            .product("string")
            .promotionCode("string")
            .publisher("string")
            .version("string")
            .build())
        .properties(Map.of("string", "string"))
        .tags(Map.of("string", "string"))
        .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",
            "promotion_code": "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:

    AccountResourceName string
    The name of the Visual Studio Team Services account resource.
    ResourceGroupName string
    Name of the resource group within the Azure subscription.
    ExtensionResourceName string
    The name of the extension.
    Location string
    The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
    Plan Pulumi.AzureNative.VisualStudio.Inputs.ExtensionResourcePlan
    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.
    Tags Dictionary<string, string>
    A dictionary of user-defined tags to be stored with the extension resource.
    AccountResourceName string
    The name of the Visual Studio Team Services account resource.
    ResourceGroupName string
    Name of the resource group within the Azure subscription.
    ExtensionResourceName string
    The name of the extension.
    Location string
    The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
    Plan ExtensionResourcePlanArgs
    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.
    Tags map[string]string
    A dictionary of user-defined tags to be stored with the extension resource.
    accountResourceName String
    The name of the Visual Studio Team Services account resource.
    resourceGroupName String
    Name of the resource group within the Azure subscription.
    extensionResourceName String
    The name of the extension.
    location String
    The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
    plan ExtensionResourcePlan
    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.
    tags Map<String,String>
    A dictionary of user-defined tags to be stored with the extension resource.
    accountResourceName string
    The name of the Visual Studio Team Services account resource.
    resourceGroupName string
    Name of the resource group within the Azure subscription.
    extensionResourceName string
    The name of the extension.
    location string
    The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
    plan ExtensionResourcePlan
    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.
    tags {[key: string]: string}
    A dictionary of user-defined tags to be stored with the extension resource.
    account_resource_name str
    The name of the Visual Studio Team Services account resource.
    resource_group_name str
    Name of the resource group within the Azure subscription.
    extension_resource_name str
    The name of the extension.
    location str
    The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
    plan ExtensionResourcePlanArgs
    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.
    tags Mapping[str, str]
    A dictionary of user-defined tags to be stored with the extension resource.
    accountResourceName String
    The name of the Visual Studio Team Services account resource.
    resourceGroupName String
    Name of the resource group within the Azure subscription.
    extensionResourceName String
    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.
    tags 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    type String
    Resource type.

    Supporting Types

    ExtensionResourcePlan, ExtensionResourcePlanArgs

    Name string
    Name of the plan.
    Product string
    Product name.
    PromotionCode 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.
    PromotionCode 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.
    promotionCode 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.
    promotionCode 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.
    promotionCode 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.
    PromotionCode 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.
    PromotionCode 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.
    promotionCode 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.
    promotionCode 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.
    promotionCode 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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi