diff --git a/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models.py b/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models.py index 870168107568..1189e18d5db7 100644 --- a/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models.py +++ b/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models.py @@ -351,8 +351,9 @@ def __init__(self, **kwargs): class ImageTemplateIdentity(Model): """Identity for the image template. - :param type: The type of identity used for the image template. Possible - values include: 'UserAssigned' + :param type: The type of identity used for the image template. The type + 'None' will remove any identities from the image template. Possible values + include: 'UserAssigned', 'None' :type type: str or ~azure.mgmt.imagebuilder.models.ResourceIdentityType :param user_assigned_identities: The list of user identities associated with the image template. The user identity dictionary key references will @@ -608,6 +609,10 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer): :param run_elevated: If specified, the PowerShell script will be run with elevated privileges :type run_elevated: bool + :param run_as_system: If specified, the PowerShell script will be run with + elevated privileges using the Local System user. Can only be true when the + runElevated field above is set to true. + :type run_as_system: bool :param valid_exit_codes: Valid exit codes for the PowerShell script. [Default: 0] :type valid_exit_codes: list[int] @@ -624,6 +629,7 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer): 'sha256_checksum': {'key': 'sha256Checksum', 'type': 'str'}, 'inline': {'key': 'inline', 'type': '[str]'}, 'run_elevated': {'key': 'runElevated', 'type': 'bool'}, + 'run_as_system': {'key': 'runAsSystem', 'type': 'bool'}, 'valid_exit_codes': {'key': 'validExitCodes', 'type': '[int]'}, } @@ -633,6 +639,7 @@ def __init__(self, **kwargs): self.sha256_checksum = kwargs.get('sha256_checksum', None) self.inline = kwargs.get('inline', None) self.run_elevated = kwargs.get('run_elevated', None) + self.run_as_system = kwargs.get('run_as_system', None) self.valid_exit_codes = kwargs.get('valid_exit_codes', None) self.type = 'PowerShell' diff --git a/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models_py3.py b/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models_py3.py index 5f6aded8d16c..f4a36dd9480b 100644 --- a/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_models_py3.py @@ -351,8 +351,9 @@ def __init__(self, *, name: str=None, source_uri: str=None, sha256_checksum: str class ImageTemplateIdentity(Model): """Identity for the image template. - :param type: The type of identity used for the image template. Possible - values include: 'UserAssigned' + :param type: The type of identity used for the image template. The type + 'None' will remove any identities from the image template. Possible values + include: 'UserAssigned', 'None' :type type: str or ~azure.mgmt.imagebuilder.models.ResourceIdentityType :param user_assigned_identities: The list of user identities associated with the image template. The user identity dictionary key references will @@ -608,6 +609,10 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer): :param run_elevated: If specified, the PowerShell script will be run with elevated privileges :type run_elevated: bool + :param run_as_system: If specified, the PowerShell script will be run with + elevated privileges using the Local System user. Can only be true when the + runElevated field above is set to true. + :type run_as_system: bool :param valid_exit_codes: Valid exit codes for the PowerShell script. [Default: 0] :type valid_exit_codes: list[int] @@ -624,15 +629,17 @@ class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer): 'sha256_checksum': {'key': 'sha256Checksum', 'type': 'str'}, 'inline': {'key': 'inline', 'type': '[str]'}, 'run_elevated': {'key': 'runElevated', 'type': 'bool'}, + 'run_as_system': {'key': 'runAsSystem', 'type': 'bool'}, 'valid_exit_codes': {'key': 'validExitCodes', 'type': '[int]'}, } - def __init__(self, *, name: str=None, script_uri: str=None, sha256_checksum: str=None, inline=None, run_elevated: bool=None, valid_exit_codes=None, **kwargs) -> None: + def __init__(self, *, name: str=None, script_uri: str=None, sha256_checksum: str=None, inline=None, run_elevated: bool=None, run_as_system: bool=None, valid_exit_codes=None, **kwargs) -> None: super(ImageTemplatePowerShellCustomizer, self).__init__(name=name, **kwargs) self.script_uri = script_uri self.sha256_checksum = sha256_checksum self.inline = inline self.run_elevated = run_elevated + self.run_as_system = run_as_system self.valid_exit_codes = valid_exit_codes self.type = 'PowerShell'