azure-native-v2.avs.Addon
Explore with Pulumi AI
An addon resource Azure REST API version: 2022-05-01. Prior API version in Azure Native 1.x: 2020-07-17-preview.
Other available API versions: 2021-01-01-preview, 2023-03-01, 2023-09-01.
Example Usage
Addons_CreateOrUpdate_Arc
Addons_CreateOrUpdate_HCX
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var addon = new AzureNative.AVS.Addon("addon", new()
{
AddonName = "hcx",
PrivateCloudName = "cloud1",
Properties = new AzureNative.AVS.Inputs.AddonHcxPropertiesArgs
{
AddonType = "HCX",
Offer = "VMware MaaS Cloud Provider (Enterprise)",
},
ResourceGroupName = "group1",
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewAddon(ctx, "addon", &avs.AddonArgs{
AddonName: pulumi.String("hcx"),
PrivateCloudName: pulumi.String("cloud1"),
Properties: &avs.AddonHcxPropertiesArgs{
AddonType: pulumi.String("HCX"),
Offer: pulumi.String("VMware MaaS Cloud Provider (Enterprise)"),
},
ResourceGroupName: pulumi.String("group1"),
})
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.avs.Addon;
import com.pulumi.azurenative.avs.AddonArgs;
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 addon = new Addon("addon", AddonArgs.builder()
.addonName("hcx")
.privateCloudName("cloud1")
.properties(AddonArcPropertiesArgs.builder()
.addonType("HCX")
.offer("VMware MaaS Cloud Provider (Enterprise)")
.build())
.resourceGroupName("group1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const addon = new azure_native.avs.Addon("addon", {
addonName: "hcx",
privateCloudName: "cloud1",
properties: {
addonType: "HCX",
offer: "VMware MaaS Cloud Provider (Enterprise)",
},
resourceGroupName: "group1",
});
import pulumi
import pulumi_azure_native as azure_native
addon = azure_native.avs.Addon("addon",
addon_name="hcx",
private_cloud_name="cloud1",
properties={
"addon_type": "HCX",
"offer": "VMware MaaS Cloud Provider (Enterprise)",
},
resource_group_name="group1")
resources:
addon:
type: azure-native:avs:Addon
properties:
addonName: hcx
privateCloudName: cloud1
properties:
addonType: HCX
offer: VMware MaaS Cloud Provider (Enterprise)
resourceGroupName: group1
Addons_CreateOrUpdate_SRM
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var addon = new AzureNative.AVS.Addon("addon", new()
{
AddonName = "srm",
PrivateCloudName = "cloud1",
Properties = new AzureNative.AVS.Inputs.AddonSrmPropertiesArgs
{
AddonType = "SRM",
LicenseKey = "41915178-A8FF-4A4D-B683-6D735AF5E3F5",
},
ResourceGroupName = "group1",
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewAddon(ctx, "addon", &avs.AddonArgs{
AddonName: pulumi.String("srm"),
PrivateCloudName: pulumi.String("cloud1"),
Properties: &avs.AddonSrmPropertiesArgs{
AddonType: pulumi.String("SRM"),
LicenseKey: pulumi.String("41915178-A8FF-4A4D-B683-6D735AF5E3F5"),
},
ResourceGroupName: pulumi.String("group1"),
})
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.avs.Addon;
import com.pulumi.azurenative.avs.AddonArgs;
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 addon = new Addon("addon", AddonArgs.builder()
.addonName("srm")
.privateCloudName("cloud1")
.properties(AddonArcPropertiesArgs.builder()
.addonType("SRM")
.licenseKey("41915178-A8FF-4A4D-B683-6D735AF5E3F5")
.build())
.resourceGroupName("group1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const addon = new azure_native.avs.Addon("addon", {
addonName: "srm",
privateCloudName: "cloud1",
properties: {
addonType: "SRM",
licenseKey: "41915178-A8FF-4A4D-B683-6D735AF5E3F5",
},
resourceGroupName: "group1",
});
import pulumi
import pulumi_azure_native as azure_native
addon = azure_native.avs.Addon("addon",
addon_name="srm",
private_cloud_name="cloud1",
properties={
"addon_type": "SRM",
"license_key": "41915178-A8FF-4A4D-B683-6D735AF5E3F5",
},
resource_group_name="group1")
resources:
addon:
type: azure-native:avs:Addon
properties:
addonName: srm
privateCloudName: cloud1
properties:
addonType: SRM
licenseKey: 41915178-A8FF-4A4D-B683-6D735AF5E3F5
resourceGroupName: group1
Addons_CreateOrUpdate_VR
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var addon = new AzureNative.AVS.Addon("addon", new()
{
AddonName = "vr",
PrivateCloudName = "cloud1",
Properties = new AzureNative.AVS.Inputs.AddonVrPropertiesArgs
{
AddonType = "VR",
VrsCount = 1,
},
ResourceGroupName = "group1",
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewAddon(ctx, "addon", &avs.AddonArgs{
AddonName: pulumi.String("vr"),
PrivateCloudName: pulumi.String("cloud1"),
Properties: &avs.AddonVrPropertiesArgs{
AddonType: pulumi.String("VR"),
VrsCount: pulumi.Int(1),
},
ResourceGroupName: pulumi.String("group1"),
})
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.avs.Addon;
import com.pulumi.azurenative.avs.AddonArgs;
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 addon = new Addon("addon", AddonArgs.builder()
.addonName("vr")
.privateCloudName("cloud1")
.properties(AddonArcPropertiesArgs.builder()
.addonType("VR")
.vrsCount(1)
.build())
.resourceGroupName("group1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const addon = new azure_native.avs.Addon("addon", {
addonName: "vr",
privateCloudName: "cloud1",
properties: {
addonType: "VR",
vrsCount: 1,
},
resourceGroupName: "group1",
});
import pulumi
import pulumi_azure_native as azure_native
addon = azure_native.avs.Addon("addon",
addon_name="vr",
private_cloud_name="cloud1",
properties={
"addon_type": "VR",
"vrs_count": 1,
},
resource_group_name="group1")
resources:
addon:
type: azure-native:avs:Addon
properties:
addonName: vr
privateCloudName: cloud1
properties:
addonType: VR
vrsCount: 1
resourceGroupName: group1
Create Addon Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Addon(name: string, args: AddonArgs, opts?: CustomResourceOptions);
@overload
def Addon(resource_name: str,
args: AddonArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Addon(resource_name: str,
opts: Optional[ResourceOptions] = None,
private_cloud_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
addon_name: Optional[str] = None,
properties: Optional[Union[AddonArcPropertiesArgs, AddonHcxPropertiesArgs, AddonSrmPropertiesArgs, AddonVrPropertiesArgs]] = None)
func NewAddon(ctx *Context, name string, args AddonArgs, opts ...ResourceOption) (*Addon, error)
public Addon(string name, AddonArgs args, CustomResourceOptions? opts = null)
type: azure-native:avs:Addon
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. AddonArgs - 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. AddonArgs - 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. AddonArgs - 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. AddonArgs - 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. AddonArgs - 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 addonResource = new AzureNative.Avs.Addon("addonResource", new()
{
PrivateCloudName = "string",
ResourceGroupName = "string",
AddonName = "string",
Properties =
{
{ "addonType", "Arc" },
{ "vCenter", "string" },
},
});
example, err := avs.NewAddon(ctx, "addonResource", &avs.AddonArgs{
PrivateCloudName: "string",
ResourceGroupName: "string",
AddonName: "string",
Properties: map[string]interface{}{
"addonType": "Arc",
"vCenter": "string",
},
})
var addonResource = new Addon("addonResource", AddonArgs.builder()
.privateCloudName("string")
.resourceGroupName("string")
.addonName("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
addon_resource = azure_native.avs.Addon("addonResource",
private_cloud_name=string,
resource_group_name=string,
addon_name=string,
properties={
addonType: Arc,
vCenter: string,
})
const addonResource = new azure_native.avs.Addon("addonResource", {
privateCloudName: "string",
resourceGroupName: "string",
addonName: "string",
properties: {
addonType: "Arc",
vCenter: "string",
},
});
type: azure-native:avs:Addon
properties:
addonName: string
privateCloudName: string
properties:
addonType: Arc
vCenter: string
resourceGroupName: string
Addon 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 Addon resource accepts the following input properties:
- Private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Addon
Name Changes to this property will trigger replacement.
- Name of the addon for the private cloud
- Properties
Pulumi.
Azure | Pulumi.Native. AVS. Inputs. Addon Arc Properties Azure | Pulumi.Native. AVS. Inputs. Addon Hcx Properties Azure | Pulumi.Native. AVS. Inputs. Addon Srm Properties Azure Native. AVS. Inputs. Addon Vr Properties - The properties of an addon resource
- Private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Addon
Name Changes to this property will trigger replacement.
- Name of the addon for the private cloud
- Properties
Addon
Arc | AddonProperties Args Hcx | AddonProperties Args Srm | AddonProperties Args Vr Properties Args - The properties of an addon resource
- private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- addon
Name Changes to this property will trigger replacement.
- Name of the addon for the private cloud
- properties
Addon
Arc | AddonProperties Hcx | AddonProperties Srm | AddonProperties Vr Properties - The properties of an addon resource
- private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- addon
Name Changes to this property will trigger replacement.
- Name of the addon for the private cloud
- properties
Addon
Arc | AddonProperties Hcx | AddonProperties Srm | AddonProperties Vr Properties - The properties of an addon resource
- private_
cloud_ name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- addon_
name Changes to this property will trigger replacement.
- Name of the addon for the private cloud
- properties
Addon
Arc | AddonProperties Args Hcx | AddonProperties Args Srm | AddonProperties Args Vr Properties Args - The properties of an addon resource
- private
Cloud Name This property is required. Changes to this property will trigger replacement.
- The name of the private cloud.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- addon
Name Changes to this property will trigger replacement.
- Name of the addon for the private cloud
- properties Property Map | Property Map | Property Map | Property Map
- The properties of an addon resource
Outputs
All input properties are implicitly available as output properties. Additionally, the Addon resource produces the following output properties:
Supporting Types
AddonArcProperties, AddonArcPropertiesArgs
- VCenter string
- The VMware vCenter resource ID
- VCenter string
- The VMware vCenter resource ID
- v
Center String - The VMware vCenter resource ID
- v
Center string - The VMware vCenter resource ID
- v_
center str - The VMware vCenter resource ID
- v
Center String - The VMware vCenter resource ID
AddonArcPropertiesResponse, AddonArcPropertiesResponseArgs
- Provisioning
State This property is required. string - The state of the addon provisioning
- VCenter string
- The VMware vCenter resource ID
- Provisioning
State This property is required. string - The state of the addon provisioning
- VCenter string
- The VMware vCenter resource ID
- provisioning
State This property is required. String - The state of the addon provisioning
- v
Center String - The VMware vCenter resource ID
- provisioning
State This property is required. string - The state of the addon provisioning
- v
Center string - The VMware vCenter resource ID
- provisioning_
state This property is required. str - The state of the addon provisioning
- v_
center str - The VMware vCenter resource ID
- provisioning
State This property is required. String - The state of the addon provisioning
- v
Center String - The VMware vCenter resource ID
AddonHcxProperties, AddonHcxPropertiesArgs
- Offer
This property is required. string - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- Offer
This property is required. string - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- offer
This property is required. String - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- offer
This property is required. string - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- offer
This property is required. str - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- offer
This property is required. String - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
AddonHcxPropertiesResponse, AddonHcxPropertiesResponseArgs
- Offer
This property is required. string - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- Provisioning
State This property is required. string - The state of the addon provisioning
- Offer
This property is required. string - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- Provisioning
State This property is required. string - The state of the addon provisioning
- offer
This property is required. String - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- provisioning
State This property is required. String - The state of the addon provisioning
- offer
This property is required. string - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- provisioning
State This property is required. string - The state of the addon provisioning
- offer
This property is required. str - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- provisioning_
state This property is required. str - The state of the addon provisioning
- offer
This property is required. String - The HCX offer, example VMware MaaS Cloud Provider (Enterprise)
- provisioning
State This property is required. String - The state of the addon provisioning
AddonSrmProperties, AddonSrmPropertiesArgs
- License
Key string - The Site Recovery Manager (SRM) license
- License
Key string - The Site Recovery Manager (SRM) license
- license
Key String - The Site Recovery Manager (SRM) license
- license
Key string - The Site Recovery Manager (SRM) license
- license_
key str - The Site Recovery Manager (SRM) license
- license
Key String - The Site Recovery Manager (SRM) license
AddonSrmPropertiesResponse, AddonSrmPropertiesResponseArgs
- Provisioning
State This property is required. string - The state of the addon provisioning
- License
Key string - The Site Recovery Manager (SRM) license
- Provisioning
State This property is required. string - The state of the addon provisioning
- License
Key string - The Site Recovery Manager (SRM) license
- provisioning
State This property is required. String - The state of the addon provisioning
- license
Key String - The Site Recovery Manager (SRM) license
- provisioning
State This property is required. string - The state of the addon provisioning
- license
Key string - The Site Recovery Manager (SRM) license
- provisioning_
state This property is required. str - The state of the addon provisioning
- license_
key str - The Site Recovery Manager (SRM) license
- provisioning
State This property is required. String - The state of the addon provisioning
- license
Key String - The Site Recovery Manager (SRM) license
AddonVrProperties, AddonVrPropertiesArgs
- Vrs
Count This property is required. int - The vSphere Replication Server (VRS) count
- Vrs
Count This property is required. int - The vSphere Replication Server (VRS) count
- vrs
Count This property is required. Integer - The vSphere Replication Server (VRS) count
- vrs
Count This property is required. number - The vSphere Replication Server (VRS) count
- vrs_
count This property is required. int - The vSphere Replication Server (VRS) count
- vrs
Count This property is required. Number - The vSphere Replication Server (VRS) count
AddonVrPropertiesResponse, AddonVrPropertiesResponseArgs
- Provisioning
State This property is required. string - The state of the addon provisioning
- Vrs
Count This property is required. int - The vSphere Replication Server (VRS) count
- Provisioning
State This property is required. string - The state of the addon provisioning
- Vrs
Count This property is required. int - The vSphere Replication Server (VRS) count
- provisioning
State This property is required. String - The state of the addon provisioning
- vrs
Count This property is required. Integer - The vSphere Replication Server (VRS) count
- provisioning
State This property is required. string - The state of the addon provisioning
- vrs
Count This property is required. number - The vSphere Replication Server (VRS) count
- provisioning_
state This property is required. str - The state of the addon provisioning
- vrs_
count This property is required. int - The vSphere Replication Server (VRS) count
- provisioning
State This property is required. String - The state of the addon provisioning
- vrs
Count This property is required. Number - The vSphere Replication Server (VRS) count
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:avs:Addon vr /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0