Пример #1
0
 /// <summary>
 /// Initializes a new instance of the VirtualMachineExtension class.
 /// </summary>
 public VirtualMachineExtension(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string forceUpdateTag = default(string), string publisher = default(string), string virtualMachineExtensionType = default(string), string typeHandlerVersion = default(string), bool?autoUpgradeMinorVersion = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView))
     : base(location, id, name, type, tags)
 {
     ForceUpdateTag = forceUpdateTag;
     Publisher      = publisher;
     VirtualMachineExtensionType = virtualMachineExtensionType;
     TypeHandlerVersion          = typeHandlerVersion;
     AutoUpgradeMinorVersion     = autoUpgradeMinorVersion;
     Settings          = settings;
     ProtectedSettings = protectedSettings;
     ProvisioningState = provisioningState;
     InstanceView      = instanceView;
 }
 /// <summary>
 /// Initializes a new instance of the VirtualMachineScaleSetVMExtension
 /// class.
 /// </summary>
 /// <param name="id">Resource Id</param>
 /// <param name="name">The name of the extension.</param>
 /// <param name="type">Resource type</param>
 /// <param name="forceUpdateTag">How the extension handler should be
 /// forced to update even if the extension configuration has not
 /// changed.</param>
 /// <param name="publisher">The name of the extension handler
 /// publisher.</param>
 /// <param name="type1">Specifies the type of the extension; an example
 /// is "CustomScriptExtension".</param>
 /// <param name="typeHandlerVersion">Specifies the version of the
 /// script handler.</param>
 /// <param name="autoUpgradeMinorVersion">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.</param>
 /// <param name="enableAutomaticUpgrade">Indicates whether the
 /// extension should be automatically upgraded by the platform if there
 /// is a newer version of the extension available.</param>
 /// <param name="settings">Json formatted public settings for the
 /// extension.</param>
 /// <param name="protectedSettings">The extension can contain either
 /// protectedSettings or protectedSettingsFromKeyVault or no protected
 /// settings at all.</param>
 /// <param name="provisioningState">The provisioning state, which only
 /// appears in the response.</param>
 /// <param name="instanceView">The virtual machine extension instance
 /// view.</param>
 public VirtualMachineScaleSetVMExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool?autoUpgradeMinorVersion = default(bool?), bool?enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView))
     : base(id)
 {
     Name                    = name;
     Type                    = type;
     ForceUpdateTag          = forceUpdateTag;
     Publisher               = publisher;
     Type1                   = type1;
     TypeHandlerVersion      = typeHandlerVersion;
     AutoUpgradeMinorVersion = autoUpgradeMinorVersion;
     EnableAutomaticUpgrade  = enableAutomaticUpgrade;
     Settings                = settings;
     ProtectedSettings       = protectedSettings;
     ProvisioningState       = provisioningState;
     InstanceView            = instanceView;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the VirtualMachineExtension class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="forceUpdateTag">How the extension handler should be
 /// forced to update even if the extension configuration has not
 /// changed.</param>
 /// <param name="publisher">The name of the extension handler
 /// publisher.</param>
 /// <param name="virtualMachineExtensionType">Specifies the type of the
 /// extension; an example is "CustomScriptExtension".</param>
 /// <param name="typeHandlerVersion">Specifies the version of the
 /// script handler.</param>
 /// <param name="autoUpgradeMinorVersion">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.</param>
 /// <param name="enableAutomaticUpgrade">Indicates whether the
 /// extension should be automatically upgraded by the platform if there
 /// is a newer version of the extension available.</param>
 /// <param name="settings">Json formatted public settings for the
 /// extension.</param>
 /// <param name="protectedSettings">The extension can contain either
 /// protectedSettings or protectedSettingsFromKeyVault or no protected
 /// settings at all.</param>
 /// <param name="provisioningState">The provisioning state, which only
 /// appears in the response.</param>
 /// <param name="instanceView">The virtual machine extension instance
 /// view.</param>
 /// <param name="suppressFailures">Indicates whether failures stemming
 /// from the extension will be suppressed (Operational failures such as
 /// not connecting to the VM will not be suppressed regardless of this
 /// value). The default is false.</param>
 /// <param name="protectedSettingsFromKeyVault">The extensions
 /// protected settings that are passed by reference, and consumed from
 /// key vault</param>
 public VirtualMachineExtension(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string forceUpdateTag = default(string), string publisher = default(string), string virtualMachineExtensionType = default(string), string typeHandlerVersion = default(string), bool?autoUpgradeMinorVersion = default(bool?), bool?enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool?suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object))
     : base(location, id, name, type, tags)
 {
     ForceUpdateTag = forceUpdateTag;
     Publisher      = publisher;
     VirtualMachineExtensionType = virtualMachineExtensionType;
     TypeHandlerVersion          = typeHandlerVersion;
     AutoUpgradeMinorVersion     = autoUpgradeMinorVersion;
     EnableAutomaticUpgrade      = enableAutomaticUpgrade;
     Settings                      = settings;
     ProtectedSettings             = protectedSettings;
     ProvisioningState             = provisioningState;
     InstanceView                  = instanceView;
     SuppressFailures              = suppressFailures;
     ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault;
     CustomInit();
 }
 private void ValidateVMExtensionInstanceView(VirtualMachineExtensionInstanceView vmExtInstanceView)
 {
     Assert.NotNull(vmExtInstanceView);
     //Assert.NotNull(vmExtInstanceView.Statuses[0].DisplayStatus);
     //Assert.NotNull(vmExtInstanceView.Statuses[0].Code);
     //Assert.NotNull(vmExtInstanceView.Statuses[0].Level);
     //Assert.NotNull(vmExtInstanceView.Statuses[0].Message);
 }