-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Preconditions
- No need to upgrade Python SDK or the Python SDK is ready.
Related command
- az vmss update --name --resource-group --enable-resilient-creation true
- 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
Request Example
No response
Target Date
2025-01-31
PM Contact
manasisoman
Engineer Contact
abondalapati
Additional context
No response