Skip to content

failing operation for az update vmss --enable-resilient-creation #32683

@manasisoman-work

Description

@manasisoman-work

Preconditions

  • No need to upgrade Python SDK or the Python SDK is ready.

Related command

  1. az vmss update --name --resource-group --enable-resilient-creation true
  2. az vmss update --name --resource-group --enable-resilient-deletion true

Resource Provider

Microsoft.Compute

Description of Feature or Work Requested

When I try to enable either Resilient Create or Resilient Delete on an existing scale set, I get the following error: AttributeError: 'NoneType' object has no attribute 'resilient_vm_creation_policy'

Feature documentation: https://review.learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/resilient-vm-create-delete?branch=pr-en-us-2842&tabs=cli-1%2Ccli-2#enable-resilient-create-and-delete

This is the full error code:
The command failed with an unexpected error. Here is the traceback:
'NoneType' object has no attribute 'resilient_vm_creation_policy'
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 239, in handler
result = cached_put(self.cmd, setter, **setterargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 455, in cached_put
return _put_operation()
^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 449, in _put_operation
result = operation(**kwargs)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/command_modules/vm/custom.py", line 4512, in update_vmss
resiliency_policy.resilient_vm_creation_policy = {'enabled': enable_resilient_creation}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'resilient_vm_creation_policy'

Minimum API Version Required

2023-07-01

Swagger PR link / SDK link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/virtualMachineScaleSet.json#L3923

Request Example

No response

Target Date

2025-01-31

PM Contact

manasisoman

Engineer Contact

abondalapati

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions