Azure / Azure/azure-cli

Setting the 'deleteOption' property on a public IP address via CLI doesn't change the value

Open
#20,592 5 comments 0 reactions 2 assignees Claimed by @necusjz View on GitHub
customer-reported feature-request Network - Public IP
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Describe the bug**

The 'deleteOption' property on a public IP address by default is null. It should be possible to change this property on an existing object via the CLI, but when running the below command no error is returned but the property value doesn't change.

**To Reproduce**
az network public-ip update --ids /id/of/public/ip --set deleteOption=delete

**Expected behavior**
The deleteOption should have the value 'delete' afterwards. Instead, it's left as null. Other properties e.g. idleTimeoutInMinutes can be set this way without issue.

**Environment summary**
version 2.30.0, being run from powershell 7 on windows 10.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.