CRUD Operations with SDKs and REST APIs

Develop for Azure Storage

Shahzad Mian

Content developer, DataCamp

CRUD

  • Create - Adding new data

sales report

  • Read - Accessing stored data

Customer profile picture

  • Update - Changing data

Changing menu

  • Delete - Removing data

Delete button

Develop for Azure Storage

CRUD

Image of CRUD operations

Develop for Azure Storage

SDKs vs REST APIs

Software Development Kits

  • Language specific libraries
  • Better for large applications that require a specific language
  • Simplify authentication and requests

SDk powertool box

REST Application Programming Interface

  • Uses standard HTTP calls
  • Great for quick scripts, integrations, or lightweight devices

Multi use tool

Develop for Azure Storage

3 ways to authenticate

  • Connection strings.
    • Best for local dev.
  • Shared Access Signature
    • For limited time access.
  • Managed Identity with Azure Active Directory.
    • Best for production.

Security

Develop for Azure Storage

Creating using Python SDK

Gemini_Generated_Image_jtug9zjtug9zjtug.png

Develop for Azure Storage

REST APIs in action

Screenshot 2025-11-26 at 3.41.35 pm.png

Develop for Azure Storage

Why CRUD matters

  • Developers often need to store, retrieve, and modify data.
  • Azure SDKs and REST APIs handle these tasks securely and efficiently.
  • Cipher Coffee examples:
    • Store order receipts as blobs.
    • Retrieve promotional images for the website.
    • Remove expired marketing files using lifecycle policies.

Data moving

Develop for Azure Storage

When to use SDKs

SDK uses

Develop for Azure Storage

Error handling and best practices

 

 

Retrying coffee shot

  • Use try-except blocks in SDKs
  • Check HTTP status codes in REST responses

Best practices

  • Batch operations to minimize network calls.

  • Use async methods for throughput.

  • Retry on transient failures (HTTP 429 or 503).

  • Log x-ms-request-id for debugging.

Develop for Azure Storage

Azure API management

Course image

Chapter image

Develop for Azure Storage

Let's practice!

Develop for Azure Storage

Preparing Video For Download...