Skip to content

Commit 18aebad

Browse files
committed
Some more tweaks
1 parent 8ebecf4 commit 18aebad

File tree

3 files changed

+28
-29
lines changed

3 files changed

+28
-29
lines changed

articles/storage-actions/storage-tasks/storage-task-conditions.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ ms.author: normesta
1414

1515
# Storage task conditions
1616

17-
This article describes the format of a storage task condition and the properties and operators that you can use to compose the clauses of a condition.
17+
A storage task contains a set of conditions and operations. This article describes the JSON format of a storage task condition. Understanding that format is important if you plan to create a storage task by using a tool other than the Azure portal (For example: Azure PowerShell, or Azure CLI). This article also lists the properties and operators that you can use to compose the clauses of a condition.
1818

1919
> [!IMPORTANT]
2020
> Azure Storage Actions is currently in PREVIEW and is available these [regions](../overview.md#supported-regions).
2121
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
2222
23-
A storage task contains a set of conditions and operations in a JSON document. The following image shows how a single condition and operation appear in a the document.
24-
25-
> [!div class="mx-imgBorder"]
26-
> ![Location of conditions and operations in a JSON snippet.](../media/storage-tasks/storage-task-operations/storage-task-operations-location-of-conditions-and-operations.png)
27-
2823
## Condition format
2924

3025
A condition a collection of one or more _clauses_. Each clause contains a _property_, a _value_, and an _operator_. When the storage task runs, it uses the operator to compare a property with a value to determine whether a clause is met by the target object. In a clause, the **operator** always appears first followed by the **property**, and then the **value**. The following image shows how each element is positioned in the expression.
@@ -39,10 +34,6 @@ The following clause allows operations only on Microsoft Word documents. This cl
3934
"condition": "[[[endsWith(Name, '.docx')]]"
4035
}
4136
```
42-
If you define conditions by using the Azure portal, you can see this JSON structure by opening the **Code** tab of the visual designer.
43-
44-
> [!div class="mx-imgBorder"]
45-
> ![Screenshot of the condition JSON as it appears in the Code tab of the visual designer.](../media/storage-tasks/storage-task-conditions/storage-task-conditions-code-tab.png)
4637

4738
### Multiple clauses in a condition
4839

@@ -76,6 +67,15 @@ The following condition allows operations only on Microsoft Word documents where
7667
}
7768
```
7869

70+
## Code view in the Azure portal
71+
72+
The visual editor available in the Azure portal, can generate the JSON of a condition for you. You can define your conditions by using the editor, and then obtain the JSON expression by opening **Code** tab. The following image shows the **Code** tab in the visual editor.
73+
74+
> [!div class="mx-imgBorder"]
75+
> ![Screenshot of the condition JSON as it appears in the Code tab of the visual designer.](../media/storage-tasks/storage-task-conditions/storage-task-conditions-code-tab.png)
76+
77+
To learn more about the visual editor, see [Define storage task conditions and operations](storage-task-conditions-operations-edit.md).
78+
7979
## Supported properties
8080

8181
The following table shows the properties that you can use to compose each clause of a condition. A clause can contain string, boolean, numeric, as well as date and time properties.

articles/storage-actions/storage-tasks/storage-task-operations.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,31 @@ ms.author: normesta
1313

1414
# Storage task operations
1515

16-
An operation is an action that a storage task performs on each object that meets the defined set of conditions. This article describes the format of a storage task operation and the list of operations, operation parameters, and allowable values. To learn more about conditions, see [Storage task conditions](storage-task-conditions.md).
16+
A storage task contains a set of conditions and operations. An operation is an action that a storage task performs on each object that meets the requirements of each condition. This article describes the JSON format of a storage task operation. Understanding that format is important if you plan to create a storage task by using a tool other than the Azure portal (For example: Azure PowerShell, or Azure CLI). This article also lists the operations, operation parameters, and the allowable values of each parameter.
17+
18+
To learn more about conditions, see [Storage task conditions](storage-task-conditions.md).
1719

1820
> [!IMPORTANT]
1921
> Azure Storage Actions is currently in PREVIEW and is available these [regions](../overview.md#supported-regions).
2022
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
2123
22-
A storage task contains a set of conditions and operations in a JSON document. The following image shows how a single condition and operation appear in a the document.
24+
## Operation format
2325

24-
> [!div class="mx-imgBorder"]
25-
> ![Location of conditions and operations in a JSON snippet.](../media/storage-tasks/storage-task-operations/storage-task-operations-location-of-conditions-and-operations.png)
26+
An operation has a name along with zero, one, or multiple parameters. The following image shows how these elements appear for an operation in the JSON template of a storage task.
2627

27-
## Operation format
28+
> [!div class="mx-imgBorder"]
29+
> ![Format of an operation.](../media/storage-tasks/storage-task-operations/storage-task-operations-basic-structure.png)
2830
29-
An operation has a name along with zero, one, or multiple parameters. The following table describes each element that makes up the operation definition.
31+
The following table describes each element.
3032

3133
| Element | Description |
3234
|---|--|
33-
| `name` | The name of the operation. For a full list of names, see the [Supported operations](#supported-operations) section of this article. |
34-
| `parameters` | A collection of one or more parameters. Each parameter has parameter name and a parameter value. For a list of parameters and parameter values, see the [Supported operations](#supported-operations) section of this article. |
35+
| `name` | The name of the operation.<sup>1</sup> |
36+
| `parameters` | A collection of one or more parameters. Each parameter has parameter name and a parameter value.<sup>1</sup> |
3537
| `onSuccess` | The action to take when the operation is successful for an object. `continue` is the only allowable value during the preview. |
3638
| `onFailure` | The action to take when the operation fails for a object. `break` is the only allowable value during the preview. |
3739

38-
The following image shows where each element appears in the definition.
39-
40-
> [!div class="mx-imgBorder"]
41-
> ![Format of an operation.](../media/storage-tasks/storage-task-operations/storage-task-operations-basic-structure.png)
40+
<sup>1</sup> For a complete list of operation names, operation parameters and parameter values, see the [Supported operations](#supported-operations) section of this article.
4241

4342
The following operations applies applies a time-based immutability policy to the object.
4443

@@ -95,13 +94,13 @@ The following table shows the supported operations, parameters, and parameter va
9594

9695
| Operation | Parameters | Values |
9796
|------------------------------|----------------------|------------------------------------------------|
98-
| Set blob tier | Tier | Hot \| Cold \| Archive |
99-
| Set blob expiry | None | Absolute \| Never expire \| Relative to creation time \| Relative to current time |
100-
| Delete blob | None | None |
101-
| Undelete blob | None | None |
102-
| Set blob tags | TagSet | A fixed collection of up to 10 key-value pairs |
103-
| Set blob immutability policy | DateTime, string | DateTime of when policy ends, Locked \| Unlocked |
104-
| Set blob legal hold | Bool | True \| False |
97+
| SetBlobTier | Tier | Hot \| Cold \| Archive |
98+
| SSetBlobExpiry | None | Absolute \| Never expire \| Relative to creation time \| Relative to current time |
99+
| DeleteBlob | None | None |
100+
| UndeleteBlob | None | None |
101+
| SetBlobTags | TagSet | A fixed collection of up to 10 key-value pairs |
102+
| SetBlobImmutabilityPolicy | DateTime, string | DateTime of when policy ends, Locked \| Unlocked |
103+
| SetBlobLegalHold | Bool | True \| False |
105104

106105
## See also
107106

0 commit comments

Comments
 (0)