1. Packages
  2. Azure Native v1
  3. API Docs
  4. visualstudio
  5. Extension
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.visualstudio.Extension

Explore with Pulumi AI

These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

The response to an extension resource GET request. API Version: 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,
    });

});
Copy
package main

import (
	visualstudio "github.com/pulumi/pulumi-azure-native-sdk/visualstudio"
	"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:        nil,
			ResourceGroupName: pulumi.String("VS-Example-Group"),
			Tags:              nil,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 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(Map.ofEntries(
                Map.entry("name", "ExamplePlan"),
                Map.entry("product", "ExampleExtensionName"),
                Map.entry("promotionCode", ""),
                Map.entry("publisher", "ExampleExtensionPublisher"),
                Map.entry("version", "1.0")
            ))
            .properties()
            .resourceGroupName("VS-Example-Group")
            .tags()
            .build());

    }
}
Copy
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: {},
});
Copy
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=azure_native.visualstudio.ExtensionResourcePlanArgs(
        name="ExamplePlan",
        product="ExampleExtensionName",
        promotion_code="",
        publisher="ExampleExtensionPublisher",
        version="1.0",
    ),
    properties={},
    resource_group_name="VS-Example-Group",
    tags={})
Copy
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: {}
Copy

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" },
    },
});
Copy
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",
	},
})
Copy
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());
Copy
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,
    })
Copy
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",
    },
});
Copy
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
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The name of the Visual Studio Team Services account resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group within the Azure subscription.
ExtensionResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The name of the Visual Studio Team Services account resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group within the Azure subscription.
ExtensionResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The name of the Visual Studio Team Services account resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group within the Azure subscription.
extensionResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The name of the Visual Studio Team Services account resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group within the Azure subscription.
extensionResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
The name of the Visual Studio Team Services account resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group within the Azure subscription.
extension_resource_name Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The name of the Visual Studio Team Services account resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group within the Azure subscription.
extensionResourceName Changes to this property will trigger replacement. 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/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/Microsoft.VisualStudio/account/ExampleAccount/extension/ms.example 
Copy

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
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi