Creating an Azure Storage Account using REST api is returning an empty response

Yannick Bastiaensen 21 Reputation points
2021-12-23T04:36:15.767+00:00

I have configured postman environment variables and have already requested a bearer token:

I am using PUT:

https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroup}}/providers/Microsoft.Storage/storageAccounts/sto4445?api-version={{apiVersion}}  

With body:

{  
  "id": "/subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroup}}/providers/Microsoft.Storage/storageAccounts/sto4445",  
  "kind": "BlockBlobStorage",  
  "location": "eastus",  
  "name": "sto4445",  
  "properties": {  
    "isHnsEnabled": true,  
    "isNfsV3Enabled": false,  
    "supportsHttpsTrafficOnly": false,  
    "networkAcls": {  
      "bypass": "AzureServices",  
      "defaultAction": "Allow",  
      "ipRules": [],  
      "virtualNetworkRules": [  
        {  
          "id": "/subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroup}}/providers/Microsoft.Network/virtualNetworks/net123/subnets/subnet12"  
        }  
      ]  
    }  
  },  
  "sku": {  
    "name": "Premium_LRS",  
    "tier": "Premium"  
  },  
  "type": "Microsoft.Storage/storageAccounts"  
}  

But the response shows nothing:
159916-image.png

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,782 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,724 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,806 Reputation points Microsoft Employee
    2021-12-23T11:40:46.103+00:00

    @Yannick Bastiaensen Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    As per your screenshot, it states, Azure Storage account has been created! Can you relaunch the Postman and try to create a New Storage account, You can also view the details as mentioned below

    160038-animationdrd.gif

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 160085-screenshot-2021-12-10-121802.png and 160112-image.pngwherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments