Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 7861fdf

Browse files
Specify header change for images
1 parent da8d4ac commit 7861fdf

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed
-10.6 KB
Binary file not shown.
15.4 KB
Loading
14 KB
Loading

Quickstart.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We are assuming that you have a trained model that you want to expose as an API.
66
## Create an Azure Resource Group
77
Throughout this quickstart tutorial, we recommend that you put all Azure resources created into a single new Resource Group. This will organize these related resources together and make it easy to remove them as a single group.
88

9-
From the [Azure Portal](https://portal.azure.com), click Create a resource from the left menu. Search the Marketplace for "Resource Group", select the resource group option and click Create.
9+
From the [Azure Portal](https://portal.azure.com), click Create a resource from the left menu. Search the Marketplace for "Resource Group", select the resource group option and click Create.
1010

1111
![Search for Resource Group](Examples/screenshots/resource_group.PNG)
1212

@@ -275,19 +275,19 @@ You may modify other environment variables as well. In particular, you may want
275275
You will want to follow these steps if you are working from the **blob-mount-py** example. If you do not plan to use Azure blob storage in your app, skip ahead to **Build and run your image**
276276
First you will need create a new Azure Blob Container with a file named `config.csv`. We also recommend using [Azure Storage Explorer](https://azure.microsoft.com/en-us/features/storage-explorer/) to aid in storage upload/download.
277277

278-
Create an Azure storage account by selecting "Storage Accounts" from the left menu and clicking the Add button. Make sure to select the resource group you previously created, and use a descriptive name for your storage account (must be lowercase letters or numbers). You may configure advanced options for your account here, or simply click "Review + create".
278+
Create an Azure storage account by selecting "Storage Accounts" from the left menu and clicking the Add button. Make sure to select the resource group you previously created, and use a descriptive name for your storage account (must be lowercase letters or numbers). You may configure advanced options for your account here, or simply click "Review + create".
279279

280280
![Create Storage Account](Examples/screenshots/blob1.PNG)
281281

282-
Click "Create" on the validation screen that appears. Once the storage account is deployed, click "Go to resource". You still need to create a container within your storage account. To do this, scroll down on the left menu of your storage account to click on "Blobs". Click the plus sign in the top left to create a new container.
282+
Click "Create" on the validation screen that appears. Once the storage account is deployed, click "Go to resource". You still need to create a container within your storage account. To do this, scroll down on the left menu of your storage account to click on "Blobs". Click the plus sign in the top left to create a new container.
283283

284284
![Create Storage Account](Examples/screenshots/blob4.PNG)
285285

286-
Use a text editor to create an empty file named `config.csv` on your local machine. You can now navigate to your empty Azure container and upload the file as a blob.
286+
Use a text editor to create an empty file named `config.csv` on your local machine. You can now navigate to your empty Azure container and upload the file as a blob.
287287

288288
![Upload config.csv](Examples/screenshots/blob_upload.PNG)
289289

290-
Next, from within the Azure Portal or within Azure Storage Explorer, copy your blob's storage key. You can find your storage keys by clicking "Keys" on the left menu of your storage account.
290+
Next, from within the Azure Portal or within Azure Storage Explorer, copy your blob's storage key. You can find your storage keys by clicking "Keys" on the left menu of your storage account.
291291

292292
![Create Storage Account](Examples/screenshots/blob_key.PNG)
293293

@@ -354,9 +354,11 @@ From the Body tab, select "raw". Ensure that "JSON (application/json)" is select
354354
![Post JSON](Examples/screenshots/postman_json.PNG)
355355

356356
#### Posting an Image
357-
From the Body tab, select "binary". Upload your JPEG or PNG image here.
357+
In the Headers tab, create a Content-Type header of either image/jpeg or image/png. From the Body tab, select "binary". Upload your JPEG or PNG image here.
358358

359-
![Post Image](Examples/screenshots/postman_image.PNG)
359+
![Post Image](Examples/screenshots/postman_pytorch1.PNG)
360+
361+
![Post Image](Examples/screenshots/postman_pytorch2.PNG)
360362

361363
## Publish to Azure Container Registry
362364
If you haven't already, [create an instance of Azure Container Registry (ACR)](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal) in your subscription.

0 commit comments

Comments
 (0)