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
+69-13Lines changed: 69 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ variables:
14
14
publicIpAddressName: pubipdns
15
15
prepareSteps:
16
16
- step: prepare_resources
17
-
armTemplateDeployment: ./dep-something.json
17
+
armTemplate: ./dep-something.json
18
18
scenarios:
19
19
- description: test_network_public_ip
20
20
steps:
@@ -98,7 +98,8 @@ Should be one of the following:
98
98
- [Step REST Call](#step-rest-call)
99
99
- [REST Call](#rest-call)
100
100
- [REST Call by ResourceName Tracking and Update](#rest-call-by-resourcename-tracking-and-update)
101
-
- [Step ARM Template Deployment](#step-arm-template-deployment)
101
+
- [Step ARM Template](#step-arm-template)
102
+
- [Step ARM Deployment Script](#step-arm-deployment-script)
102
103
103
104
All of the above definitions share the following fields:
104
105
@@ -109,28 +110,83 @@ All of the above definitions share the following fields:
109
110
- **Type:** Required, String
110
111
- Step name. Must be unique in the same file.
111
112
112
-
## Step ARM Template Deployment
113
+
## Step ARM Template
113
114
114
-
See [Step ARM Template Deployment Schema](./v1.1/schema.json#L247).
115
+
See [Step ARM Template Schema](./v1.1/schema.json#L250).
115
116
116
117
Step to deploy ARM template to the scope. Template parameters and outputs will also interact with variables automatically, see [Variables](./Variables.md).
117
118
118
119
**Example:**
119
120
120
121
```yaml
121
-
step: prepare_resources
122
-
armTemplateDeployment: ./dep-storage-account.json
122
+
- step: prepare_resources
123
+
armTemplate: ./dep-storage-account.json
123
124
```
124
125
125
126
**Fields:**
126
127
127
-
- **armTemplateDeployment**
128
+
- **armTemplate**
128
129
- **Type:** Required, String
129
130
- Path to ARM template json file. See [ARM Template](https://docs.microsoft.com/azure/templates/).
130
131
132
+
133
+
## Step ARM Deployment Script
134
+
135
+
See [Step ARM Deployment Script Schema](./v1.1/schema.json#L266).
136
+
137
+
Step to deploy ARM deployment script to the scope. Template parameters and outputs will also interact with variables automatically, see [Variables](./Variables.md).
- Path to script file. See [ARM Deployment Script Template](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-script-template).
160
+
- **arguments**
161
+
- **Type:** Optional, String
162
+
- Arguments for the script. Same as arguments in ARM Template. See [ARM Deployment Script Template](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-script-template).
163
+
- **environmentVariables**
164
+
- **Type:** Optional, Array of [EnvironmentVariable](#EnvironmentVariable)
165
+
- Specify the environment variables to pass over to the script.
166
+
167
+
### EnvironmentVariable
168
+
169
+
**Example:**
170
+
171
+
```yaml
172
+
- name: dnsCname
173
+
value: asc
174
+
- name: dnsCnameAlias
175
+
value: $(serviceName).somedomain.com
176
+
```
177
+
178
+
**Fields:**
179
+
180
+
- **name**
181
+
- **Type:** Required, String
182
+
- Name of Variable.
183
+
- **value**
184
+
- **Type:** Required, String
185
+
- See [Variables](./Variables.md).
186
+
131
187
## Step REST Call
132
188
133
-
See [Step REST Call Schema](./v1.1/schema.json#L205)
189
+
See [Step REST Call Schema](./v1.1/schema.json#L208)
134
190
135
191
Step to run a swagger operation defined rest call. This may not be just one http call.
136
192
@@ -150,11 +206,11 @@ Rest call will have computed **requestParameter** and **responseExpected** after
0 commit comments