def _configure_azure_backend(self) -> StorageBackend:
        """Configure Azure backend for dev/prod environments.

        Returns:
            Configured Azure storage backend

        Raises:
            RuntimeError: If Azure connection fails
        """
        try:
            credential = DefaultAzureCredential()
            storage_account = os.getenv(
                "AZURE_STORAGE_ACCOUNT_NAME", self._get_default_storage_account()
            )

            if not storage_account:
                raise ValueError("No storage account name configured")

            blob_client = BlobServiceClient(
                account_url=f"https://{storage_account}.blob.core.windows.net",
                credential=credential,
            )

            # Test connection
            try:
                # Just try to get the first container to test connection
                next(iter(blob_client.list_containers()), None)
            except Exception:
                # If we can't list containers, connection has failed
                raise

            logger.with_context(
                environment=settings.ENVIRONMENT,
                storage_account=storage_account,
            ).info("Connected to Azure Storage using managed identity")
            return AzureStorageBackend(blob_client)

        except Exception as e:
            logger.with_context(
                environment=settings.ENVIRONMENT,
                error_type=type(e).__name__,
            ).error(f"Failed to connect to Azure Storage: {e}")
            raise RuntimeError(f"Azure Storage connection failed: {e}") from e
Configure Azure backend for dev/prod environments.

        Returns:
            Configured Azure storage backend

        Raises:
            RuntimeError: If Azure connection fails
        
backend/airweave/platform/storage/storage_client.py