def _configure_local_backend(self) -> StorageBackend:
        """Configure backend for local development.

        Tries Azure first, falls back to local disk.

        Returns:
            Configured storage backend
        """
        # Check if we should skip Azure and use local storage directly
        if os.getenv("SKIP_AZURE_STORAGE", "false").lower() == "true":
            logger.info("SKIP_AZURE_STORAGE is set, using local disk storage")
            local_path = Path("./local_storage")
            self._ensure_default_containers(local_path)
            return LocalStorageBackend(local_path)

        # Try Azure connection first
        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 available")

            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(
                storage_account=storage_account,
            ).info("Connected to Azure Storage via Azure CLI")
            return AzureStorageBackend(blob_client)

        except (ClientAuthenticationError, Exception) as e:
            logger.warning(
                f"Azure connection failed, using local disk: {e} (error type: {type(e).__name__})"
            )

            # Fall back to local disk
            local_path = Path("./local_storage")
            self._ensure_default_containers(local_path)
            return LocalStorageBackend(local_path)
Configure backend for local development.

        Tries Azure first, falls back to local disk.

        Returns:
            Configured storage backend
        
backend/airweave/platform/storage/storage_client.py