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
This asynchronous operation returns a status of 202 until the job has been successfully published. The location response header contains the URI used to get the status of the process. While the process is running, a call to the URI in the location header returns a status of 202. When the process finishes, the URI in the location header returns a status of 200.
143
+
The previous call to the IoT Edge Package Publish API triggers an asynchronous operation and returns a status of 202. The **location** response header contains the URI used to get the status of that asynchronous operation. A call to the URI in the **location** header returns a status of 202 to indicate the asynchronous operation is still in progress. When the operation is completed, the call to the URI in the **location** header returns a status of 200.
144
144
145
-
Example of an Edge package publish call using **curl**:
145
+
Example of an IoT Edge package publish call using **curl**:
146
146
147
147
```bash
148
148
curl -d -X POST https://management.azure.com/subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobname}/publishedgepackage?api-version=2017-04-01-preview
149
149
```
150
-
151
-
After making the POST call, you should expect a response with an empty body. Look forthe URL locatedin the HEAD of the response and record it for further use.
152
-
153
-
Example of the URL from the HEAD of response:
154
150
151
+
After making the POST call, you should expect a response with an empty body. Look forthe URIin the **location** header of the response, and record it for further use.
152
+
153
+
Example of the URI from the **location** header of response:
Wait forone to two minutes before running the following command to make an API call with the URL you foundin the HEAD of the response. Retry the commandif you do not get a 200 response.
160
-
158
+
159
+
Wait from a few seconds to a couple of minutes before making a call to the API whose URI you found in the **location** header of the response to the IoT Edge Package Publish API, and repeat the cycle of waiting and retrying until you get a 200 response.
160
+
161
161
Example of making API call with returned URL with **curl**:
162
162
163
163
```bash
164
-
curl -d –X GET https://management.azure.com/subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.StreamAnalytics/streamingjobs/{resourcename}/publishedgepackage?api-version=2017-04-01-preview
164
+
curl -d –X GET https://management.azure.com/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/Microsoft.StreamAnalytics/StreamingJobs/{resourcename}/OperationResults/{guidAssignedToTheAsynchronousOperation}?api-version=2017-04-01-preview
165
165
```
166
166
167
-
The response includes the information you need to add to the Edge deployment script. The examples below show what information you need to collect and where to add it in the deployment manifest.
168
-
167
+
The response includes the information you need to add to the IoT Edge deployment script. The examples below show what information you need to collect and where to add it in the deployment manifest.
168
+
169
169
Sample response body after publishing successfully:
170
170
171
171
```json
@@ -177,7 +177,7 @@ Sample response body after publishing successfully:
177
177
}
178
178
```
179
179
180
-
Sample of Deployment Manifest:
180
+
Sample of Deployment Manifest:
181
181
182
182
```json
183
183
{
@@ -247,11 +247,10 @@ Sample of Deployment Manifest:
247
247
}
248
248
```
249
249
250
-
After the configuration of the deployment manifest, refer to [Deploy Azure IoT Edge modules with Azure CLI](../iot-edge/how-to-deploy-modules-cli.md) for deployment.
250
+
After you configure the deployment manifest, refer to [Deploy Azure IoT Edge modules with Azure CLI](../iot-edge/how-to-deploy-modules-cli.md) for deployment.
251
251
252
+
## Next steps
252
253
253
-
## Next steps
254
-
255
254
* [Azure Stream Analytics on IoT Edge](stream-analytics-edge.md)
256
255
* [ASA on IoT Edge tutorial](../iot-edge/tutorial-deploy-stream-analytics.md)
257
-
* [Develop Stream Analytics Edge jobs using Visual Studio tools](stream-analytics-tools-for-visual-studio-edge-jobs.md)
256
+
* [Develop Stream Analytics IoT Edge jobs using Visual Studio tools](stream-analytics-tools-for-visual-studio-edge-jobs.md)
0 commit comments