Steps to perform Microsoft Azure Storage Put Block operation
Tags: azure, cloud, storage, tutorial
Published: 2021-09-03 12:05:13

---
title: Steps to perform Microsoft Azure Storage Put Block operation
published: true
date: 2021-03-23 08:46:39 UTC
tags: #azure, #cloud, #storage, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/steps-to-perform-microsoft-azure-storage-put-block-operation/239922/1
---

## **Summary:**

This article describes step-by-step process of performing Put Block operation in **Microsoft Azure Storage**.

Put Block operation creates a new block to be committed as part of a blob, to commit the new or updated blob as part of the blob Put Block List operation should be performed.

## **Prerequisites:**

• The user needs to have a working **Microsoft Azure Storage** Account  
• Working [webMethods.io](http://webMethods.io) tenant

## **Contents:**

How to create flow service to perform Put Block operation in **Microsoft Azure Storage**

## **Steps:**

1. Use **Amazon S3** connector to pass file as stream to putBlock operation  
(Upload file to **Amazon S3** by following article [FlowService for uploading files to Amazon Simple Storage Service (S3) bucket in webMethods.io - Knowledge base - Software AG Tech Community & Forums](https://tech.forums.softwareag.com/t/flowservice-for-uploading-files-to-amazon-simple-storage-service-s3-bucket-in-webmethods-io/237513) )
After uploading file to **Amazon S3** , Select **Amazon S3** connector in flow service , select operation getObject and provide input bucketName and objectName  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/d/d903777992bca4d266430fa26465c95605cf2365.png)  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/6/65ec585653b24c9360ae9ee5f220a5d95e5717fc.png)
2. Select **Microsoft Azure Storage v2019-12-12** connector and Select predefined operation blobPutBlock  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/3/3dcbaef0b9a2b2e68127168354af213873eb0969.png)  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/4/40843e46ac0b7a196519bced27e25897ce891533.png)
3. Map stream response from **Amazon S3** to Put Block stream input and Provide other mandatory inputs containerName, blobName and blockId (A valid Base64 string value that identifies the block) to create new block to be committed as part of a blob  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/f/f574a7a88a8a85ca98bf58209d287cef9af53a14.png)
4. Select **Microsoft Azure Storage** predefined operation blobGetBlockList to get the list of uncommitted blocks  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/7/7370aa3e0eb0dcff63bebf42fcda156c81afbc6a.png)
5. Map input fields and select uncommitted in blockListType input field  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/9/952392bc0331651336b6d139591767e83bfcee3d.png)  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/f/fbf93bb7fbe703273e324ff106de8326e2201904.png)
6. Select **Microsoft Azure Storage** predefined operation blobPutBlockList and Map input fields  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/2/2d038585e2bbf7fa09cd3d6c36b910a3b749d0aa.png)  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/9/94d28da8a0a284de8f18927f1667e18041b87369.png)  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/d/d02ef2fe6e79757fbd1e37693b887a9f39dd7d98.png)
7. Name the flow service and click on Save  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/9/991dd611d836d1879c2c5a5dda1e52b8f315dd91.png)
8. Run the flow service  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/b/b7bcde439fd486c9813b968249dbd0199134cd46.png)  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/7/7a2cc7788c5f124e57d09e0cf1684b65e2dc4f2c.png)
9. After successful execution of the operation, we can verify the content of Block Blob from the Azure portal.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/6/6c84e24249ad5576df1959115874795e3ba01ac1.png)

**Sample Flow :**  
[Azure\_Storage\_blobPutBlock\_recipe.zip](/uploads/short-url/nl1Rv4aAKxJJfBPgyJn0knd4jQY.zip) (7.6 KB)

[Read full topic](https://tech.forums.softwareag.com/t/steps-to-perform-microsoft-azure-storage-put-block-operation/239922/1)