azure-native.visualstudio.Extension
Explore with Pulumi AI
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,
});
});
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
})
}
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());
}
}
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={})
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 =
{
{ "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
The Extension resource accepts the following input properties:
- Account
Resource stringName - The name of the Visual Studio Team Services account resource.
- Resource
Group stringName - Name of the resource group within the Azure subscription.
- Extension
Resource stringName - 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 stringName - The name of the Visual Studio Team Services account resource.
- Resource
Group stringName - Name of the resource group within the Azure subscription.
- Extension
Resource stringName - 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 StringName - The name of the Visual Studio Team Services account resource.
- resource
Group StringName - Name of the resource group within the Azure subscription.
- extension
Resource StringName - 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 stringName - The name of the Visual Studio Team Services account resource.
- resource
Group stringName - Name of the resource group within the Azure subscription.
- extension
Resource stringName - 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_ strname - The name of the Visual Studio Team Services account resource.
- resource_
group_ strname - Name of the resource group within the Azure subscription.
- extension_
resource_ strname - 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 StringName - The name of the Visual Studio Team Services account resource.
- resource
Group StringName - Name of the resource group within the Azure subscription.
- extension
Resource StringName - 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