Save JSON response in Azure blob file using Pyspark in Azure Functions

krishna572 886 Reputation points
2022-07-23T11:03:49.01+00:00

POST Method Azure Python Function:

   python  
   URL = "https://api.github.com/users/hadley/orgs"  
   connection = http.client.HTTPSConnectips(URL)  
   response = connection.getresponse()  
   data = response.read().decode("utf-8")  
   jsonfdata = json.loads(json.dumps(data)  

After this, what is the code to save this JSON response in the blob file in azure?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2022-07-24T17:11:03.573+00:00

    From a similar post and response from (https://learn.microsoft.com/en-us/answers/questions/396444/how-to-save-json-content-to-azure-blob-storgae-in.html):

    How do I receive multipart form data in Azure function? (answered by JayaChatterjee-MSFT)

    https://stackoverflow.com/questions/61790607/how-do-i-receive-multipart-form-data-in-azure-function/63305138#63305138

    -------------------------

    If you found this helpful please mark as correct answer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.