Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{doc} update shorthand_syntax.md #22976

Merged
merged 1 commit into from
Jun 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion doc/shorthand_syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ az some-command --contact name=Bill address=null

### `null` value in update commands

In update commands `null` value is usually used to unset properties.
In update commands `null` value is usually used to unset properties of a object or remove elements of an array or a dict.
For example if there already exists an resource with following contact property

contact
Expand Down Expand Up @@ -280,6 +280,11 @@ By using `null` value in update command, _address_ property of resource's _conta
az some-update-command --contact address=null
```

By using `null` value in update command, the first element of resource's _emails_ can be removed:
```bash
az some-update-command --emails [0]=null
```

# Single Quotes String

_Single Quotes String_ is used to pass a __string__ value with special characters: `:`, `,`, `{`, `}`, `[`, `]`, `null`, `??` and space.
Expand Down