azure-native.compute.VirtualMachineScaleSetExtension
Explore with Pulumi AI
Describes a Virtual Machine Scale Set Extension. API Version: 2021-03-01.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:compute:VirtualMachineScaleSetExtension myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}
Create VirtualMachineScaleSetExtension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachineScaleSetExtension(name: string, args: VirtualMachineScaleSetExtensionArgs, opts?: CustomResourceOptions);
@overload
def VirtualMachineScaleSetExtension(resource_name: str,
args: VirtualMachineScaleSetExtensionInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachineScaleSetExtension(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
vm_scale_set_name: Optional[str] = None,
publisher: Optional[str] = None,
name: Optional[str] = None,
protected_settings: Optional[Any] = None,
provision_after_extensions: Optional[Sequence[str]] = None,
auto_upgrade_minor_version: Optional[bool] = None,
force_update_tag: Optional[str] = None,
settings: Optional[Any] = None,
type: Optional[str] = None,
type_handler_version: Optional[str] = None,
enable_automatic_upgrade: Optional[bool] = None,
vmss_extension_name: Optional[str] = None)
func NewVirtualMachineScaleSetExtension(ctx *Context, name string, args VirtualMachineScaleSetExtensionArgs, opts ...ResourceOption) (*VirtualMachineScaleSetExtension, error)
public VirtualMachineScaleSetExtension(string name, VirtualMachineScaleSetExtensionArgs args, CustomResourceOptions? opts = null)
public VirtualMachineScaleSetExtension(String name, VirtualMachineScaleSetExtensionArgs args)
public VirtualMachineScaleSetExtension(String name, VirtualMachineScaleSetExtensionArgs args, CustomResourceOptions options)
type: azure-native:compute:VirtualMachineScaleSetExtension
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 VirtualMachineScaleSetExtensionArgs
- 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 VirtualMachineScaleSetExtensionInitArgs
- 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 VirtualMachineScaleSetExtensionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineScaleSetExtensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualMachineScaleSetExtensionArgs
- 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 virtualMachineScaleSetExtensionResource = new AzureNative.Compute.VirtualMachineScaleSetExtension("virtualMachineScaleSetExtensionResource", new()
{
ResourceGroupName = "string",
VmScaleSetName = "string",
Publisher = "string",
Name = "string",
ProtectedSettings = "any",
ProvisionAfterExtensions = new[]
{
"string",
},
AutoUpgradeMinorVersion = false,
ForceUpdateTag = "string",
Settings = "any",
Type = "string",
TypeHandlerVersion = "string",
EnableAutomaticUpgrade = false,
VmssExtensionName = "string",
});
example, err := compute.NewVirtualMachineScaleSetExtension(ctx, "virtualMachineScaleSetExtensionResource", &compute.VirtualMachineScaleSetExtensionArgs{
ResourceGroupName: "string",
VmScaleSetName: "string",
Publisher: "string",
Name: "string",
ProtectedSettings: "any",
ProvisionAfterExtensions: []string{
"string",
},
AutoUpgradeMinorVersion: false,
ForceUpdateTag: "string",
Settings: "any",
Type: "string",
TypeHandlerVersion: "string",
EnableAutomaticUpgrade: false,
VmssExtensionName: "string",
})
var virtualMachineScaleSetExtensionResource = new VirtualMachineScaleSetExtension("virtualMachineScaleSetExtensionResource", VirtualMachineScaleSetExtensionArgs.builder()
.resourceGroupName("string")
.vmScaleSetName("string")
.publisher("string")
.name("string")
.protectedSettings("any")
.provisionAfterExtensions("string")
.autoUpgradeMinorVersion(false)
.forceUpdateTag("string")
.settings("any")
.type("string")
.typeHandlerVersion("string")
.enableAutomaticUpgrade(false)
.vmssExtensionName("string")
.build());
virtual_machine_scale_set_extension_resource = azure_native.compute.VirtualMachineScaleSetExtension("virtualMachineScaleSetExtensionResource",
resource_group_name=string,
vm_scale_set_name=string,
publisher=string,
name=string,
protected_settings=any,
provision_after_extensions=[string],
auto_upgrade_minor_version=False,
force_update_tag=string,
settings=any,
type=string,
type_handler_version=string,
enable_automatic_upgrade=False,
vmss_extension_name=string)
const virtualMachineScaleSetExtensionResource = new azure_native.compute.VirtualMachineScaleSetExtension("virtualMachineScaleSetExtensionResource", {
resourceGroupName: "string",
vmScaleSetName: "string",
publisher: "string",
name: "string",
protectedSettings: "any",
provisionAfterExtensions: ["string"],
autoUpgradeMinorVersion: false,
forceUpdateTag: "string",
settings: "any",
type: "string",
typeHandlerVersion: "string",
enableAutomaticUpgrade: false,
vmssExtensionName: "string",
});
type: azure-native:compute:VirtualMachineScaleSetExtension
properties:
autoUpgradeMinorVersion: false
enableAutomaticUpgrade: false
forceUpdateTag: string
name: string
protectedSettings: any
provisionAfterExtensions:
- string
publisher: string
resourceGroupName: string
settings: any
type: string
typeHandlerVersion: string
vmScaleSetName: string
vmssExtensionName: string
VirtualMachineScaleSetExtension 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 VirtualMachineScaleSetExtension resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Vm
Scale stringSet Name - The name of the VM scale set where the extension should be create or updated.
- Auto
Upgrade boolMinor Version - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- Enable
Automatic boolUpgrade - Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
- Force
Update stringTag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
- Name string
- The name of the extension.
- Protected
Settings object - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- Provision
After List<string>Extensions - Collection of extension names after which this extension needs to be provisioned.
- Publisher string
- The name of the extension handler publisher.
- Settings object
- Json formatted public settings for the extension.
- Type string
- Specifies the type of the extension; an example is "CustomScriptExtension".
- Type
Handler stringVersion - Specifies the version of the script handler.
- Vmss
Extension stringName - The name of the VM scale set extension.
- Resource
Group stringName - The name of the resource group.
- Vm
Scale stringSet Name - The name of the VM scale set where the extension should be create or updated.
- Auto
Upgrade boolMinor Version - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- Enable
Automatic boolUpgrade - Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
- Force
Update stringTag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
- Name string
- The name of the extension.
- Protected
Settings interface{} - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- Provision
After []stringExtensions - Collection of extension names after which this extension needs to be provisioned.
- Publisher string
- The name of the extension handler publisher.
- Settings interface{}
- Json formatted public settings for the extension.
- Type string
- Specifies the type of the extension; an example is "CustomScriptExtension".
- Type
Handler stringVersion - Specifies the version of the script handler.
- Vmss
Extension stringName - The name of the VM scale set extension.
- resource
Group StringName - The name of the resource group.
- vm
Scale StringSet Name - The name of the VM scale set where the extension should be create or updated.
- auto
Upgrade BooleanMinor Version - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- enable
Automatic BooleanUpgrade - Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
- force
Update StringTag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
- name String
- The name of the extension.
- protected
Settings Object - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- provision
After List<String>Extensions - Collection of extension names after which this extension needs to be provisioned.
- publisher String
- The name of the extension handler publisher.
- settings Object
- Json formatted public settings for the extension.
- type String
- Specifies the type of the extension; an example is "CustomScriptExtension".
- type
Handler StringVersion - Specifies the version of the script handler.
- vmss
Extension StringName - The name of the VM scale set extension.
- resource
Group stringName - The name of the resource group.
- vm
Scale stringSet Name - The name of the VM scale set where the extension should be create or updated.
- auto
Upgrade booleanMinor Version - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- enable
Automatic booleanUpgrade - Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
- force
Update stringTag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
- name string
- The name of the extension.
- protected
Settings any - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- provision
After string[]Extensions - Collection of extension names after which this extension needs to be provisioned.
- publisher string
- The name of the extension handler publisher.
- settings any
- Json formatted public settings for the extension.
- type string
- Specifies the type of the extension; an example is "CustomScriptExtension".
- type
Handler stringVersion - Specifies the version of the script handler.
- vmss
Extension stringName - The name of the VM scale set extension.
- resource_
group_ strname - The name of the resource group.
- vm_
scale_ strset_ name - The name of the VM scale set where the extension should be create or updated.
- auto_
upgrade_ boolminor_ version - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- enable_
automatic_ boolupgrade - Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
- force_
update_ strtag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
- name str
- The name of the extension.
- protected_
settings Any - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- provision_
after_ Sequence[str]extensions - Collection of extension names after which this extension needs to be provisioned.
- publisher str
- The name of the extension handler publisher.
- settings Any
- Json formatted public settings for the extension.
- type str
- Specifies the type of the extension; an example is "CustomScriptExtension".
- type_
handler_ strversion - Specifies the version of the script handler.
- vmss_
extension_ strname - The name of the VM scale set extension.
- resource
Group StringName - The name of the resource group.
- vm
Scale StringSet Name - The name of the VM scale set where the extension should be create or updated.
- auto
Upgrade BooleanMinor Version - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- enable
Automatic BooleanUpgrade - Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
- force
Update StringTag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
- name String
- The name of the extension.
- protected
Settings Any - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- provision
After List<String>Extensions - Collection of extension names after which this extension needs to be provisioned.
- publisher String
- The name of the extension handler publisher.
- settings Any
- Json formatted public settings for the extension.
- type String
- Specifies the type of the extension; an example is "CustomScriptExtension".
- type
Handler StringVersion - Specifies the version of the script handler.
- vmss
Extension StringName - The name of the VM scale set extension.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachineScaleSetExtension resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state, which only appears in the response.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state, which only appears in the response.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state, which only appears in the response.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - The provisioning state, which only appears in the response.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - The provisioning state, which only appears in the response.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state, which only appears in the response.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0