You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/api-scenario/references/ApiScenarioDefinition.md
+45-8Lines changed: 45 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ scenarios:
72
72
73
73
## Scenario
74
74
75
-
See [Scenario Schema](./v1.2/schema.json#L249).
75
+
See [Scenario Schema](./v1.2/schema.json#L353).
76
76
77
77
It defines one API scenario that could go through on its own.
78
78
@@ -109,7 +109,7 @@ variables:
109
109
110
110
## Step
111
111
112
-
See [Step Schema](./v1.2/schema.json#L280).
112
+
See [Step Schema](./v1.2/schema.json#L383).
113
113
114
114
Defines one step in API scenario.
115
115
@@ -120,6 +120,7 @@ Should be one of the following:
120
120
- [REST Example](#rest-example)
121
121
- [Step ARM Template](#step-arm-template)
122
122
- [Step ARM Deployment Script](#step-arm-deployment-script)
123
+
- [Step Role Assignment](#step-role-assignment)
123
124
124
125
All of the above definitions share the following fields:
125
126
@@ -146,7 +147,7 @@ REST call step could be defined either by an operation, or by an example file. R
146
147
147
148
#### Operation based step
148
149
149
-
See [Step Operation Schema](./v1.2/schema.json#L339)
150
+
See [Step Operation Schema](./v1.2/schema.json#L450)
150
151
151
152
**Example:**
152
153
```yaml
@@ -183,7 +184,7 @@ See [Step Operation Schema](./v1.2/schema.json#L339)
183
184
184
185
#### ExampleFile based step
185
186
186
-
See [Step Example Schema](./v1.2/schema.json#L389)
187
+
See [Step Example Schema](./v1.2/schema.json#L520)
187
188
188
189
**Example:**
189
190
@@ -238,7 +239,7 @@ if (scope is 'ResourceGroup' && operation.verb in ('PUT', 'PATCH')) {
238
239
239
240
### Step ARM Template
240
241
241
-
See [Step ARM Template Schema](./v1.2/schema.json#L427).
242
+
See [Step ARM Template Schema](./v1.2/schema.json#L566).
242
243
243
244
Step to deploy ARM template to the scope. Template parameters and outputs will also interact with variables automatically, see [Variables](./Variables.md).
244
245
@@ -257,7 +258,7 @@ Step to deploy ARM template to the scope. Template parameters and outputs will a
257
258
258
259
### Step ARM Deployment Script
259
260
260
-
See [Step ARM Deployment Script Schema](./v1.2/schema.json#L448).
261
+
See [Step ARM Deployment Script Schema](./v1.2/schema.json#L587).
261
262
262
263
Step to deploy ARM deployment script to the scope. Template parameters and outputs will also interact with variables automatically, see [Variables](./Variables.md).
263
264
@@ -289,6 +290,42 @@ Step to deploy ARM deployment script to the scope. Template parameters and outpu
289
290
- **Type:** Optional, Array of [EnvironmentVariable](#EnvironmentVariable)
290
291
- Specify the environment variables to pass over to the script.
291
292
293
+
### Step Role Assignment
294
+
295
+
See [Step Role Assignment Schema](./v1.2/schema.json#L629).
296
+
297
+
Step to assign an Azure role to the scope.
298
+
299
+
**Example:**
300
+
301
+
```yaml
302
+
- step: AssignDataOwnerRole
303
+
roleAssignment:
304
+
scope: $(configStoreId)
305
+
principalId: a0b840b5-a7b4-4bb4-b125-ae0acf68cf16
306
+
roleName: App Configuration Data Owner
307
+
```
308
+
309
+
**Fields:**
310
+
311
+
- **scope**
312
+
- **Type:** Required, String
313
+
- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
0 commit comments